LibreOffice Module basegfx (master) 1
Public Member Functions | List of all members
basegfx::B2I64Tuple Class Reference

Base class for all Points/Vectors with two sal_Int64 values. More...

#include <b2i64tuple.hxx>

Inheritance diagram for basegfx::B2I64Tuple:
[legend]
Collaboration diagram for basegfx::B2I64Tuple:
[legend]

Public Member Functions

 B2I64Tuple ()
 Create a 2D Tuple. More...
 
 B2I64Tuple (sal_Int64 nX, sal_Int64 nY)
 Create a 2D Tuple. More...
 
 B2I64Tuple (const B2I64Tuple &rTup)
 Create a copy of a 2D Tuple. More...
 
B2I64Tuple operator- (void) const
 
B2I64Tupleoperator= (const B2I64Tuple &rTup)
 
- Public Member Functions inherited from basegfx::Tuple2D< sal_Int64 >
 Tuple2D (sal_Int64 x, sal_Int64 y)
 Create a 2D Tuple. More...
 
double get (Axis2D eAxis)
 
void set (Axis2D eAxis, sal_Int64 fValue)
 
sal_Int64 getX () const
 Get X-Coordinate of 2D Tuple. More...
 
sal_Int64 getY () const
 Get Y-Coordinate of 2D Tuple. More...
 
void setX (sal_Int64 fX)
 Set X-Coordinate of 2D Tuple. More...
 
void setY (sal_Int64 fY)
 Set Y-Coordinate of 2D Tuple. More...
 
void adjustX (sal_Int64 fX)
 Adjust X-Coordinate of 2D Tuple. More...
 
void adjustY (sal_Int64 fY)
 Adjust Y-Coordinate of 2D Tuple. More...
 
bool equal (const Tuple2D< sal_Int64 > &rTup) const
 
bool equal (const Tuple2D< sal_Int64 > &rTup) const
 
bool equalZero () const
 
bool equalZero () const
 
Tuple2D< sal_Int64 > & operator+= (const Tuple2D< sal_Int64 > &rTup)
 
Tuple2D< sal_Int64 > & operator-= (const Tuple2D< sal_Int64 > &rTup)
 
Tuple2D< sal_Int64 > & operator/= (const Tuple2D< sal_Int64 > &rTup)
 
Tuple2D< sal_Int64 > & operator/= (sal_Int64 t)
 
Tuple2D< sal_Int64 > & operator*= (const Tuple2D< sal_Int64 > &rTup)
 
Tuple2D< sal_Int64 > & operator*= (sal_Int64 t)
 
Tuple2D< sal_Int64 > operator- (void) const
 
bool operator== (const Tuple2D< sal_Int64 > &rTup) const
 
bool operator!= (const Tuple2D< sal_Int64 > &rTup) const
 

Additional Inherited Members

- Public Attributes inherited from basegfx::Tuple2D< sal_Int64 >
sal_Int64 mnX
 
sal_Int64 mnY
 
sal_Int64 mfX
 
sal_Int64 mfY
 
- Protected Attributes inherited from basegfx::Tuple2D< sal_Int64 >
union {
   struct {
      TYPE   mnX
 
      TYPE   mnY
 
   } 
 
   struct {
      TYPE   mfX
 
      TYPE   mfY
 
   } 
 
}; 
 

Detailed Description

Base class for all Points/Vectors with two sal_Int64 values.

This class provides all methods common to Point and Vector classes which are derived from here.

Derive: \n Use this class to implement Points or Vectors
which are based on two sal_Int64 values

Definition at line 36 of file b2i64tuple.hxx.

Constructor & Destructor Documentation

◆ B2I64Tuple() [1/3]

basegfx::B2I64Tuple::B2I64Tuple ( )
inline

Create a 2D Tuple.

The tuple is initialized to (0, 0)

Definition at line 43 of file b2i64tuple.hxx.

◆ B2I64Tuple() [2/3]

basegfx::B2I64Tuple::B2I64Tuple ( sal_Int64  nX,
sal_Int64  nY 
)
inline

Create a 2D Tuple.

Parameters
nXThis parameter is used to initialize the X-coordinate of the 2D Tuple.
nYThis parameter is used to initialize the Y-coordinate of the 2D Tuple.

Definition at line 57 of file b2i64tuple.hxx.

◆ B2I64Tuple() [3/3]

basegfx::B2I64Tuple::B2I64Tuple ( const B2I64Tuple rTup)
inline

Create a copy of a 2D Tuple.

Parameters
rTupThe 2D Tuple which will be copied.

Definition at line 66 of file b2i64tuple.hxx.

Member Function Documentation

◆ operator-()

B2I64Tuple basegfx::B2I64Tuple::operator- ( void  ) const
inline

Definition at line 72 of file b2i64tuple.hxx.

◆ operator=()

B2I64Tuple & basegfx::B2I64Tuple::operator= ( const B2I64Tuple rTup)
inline

Definition at line 77 of file b2i64tuple.hxx.

References basegfx::Tuple2D< TYPE >::mnX, and basegfx::Tuple2D< TYPE >::mnY.


The documentation for this class was generated from the following file: