LibreOffice Module basegfx (master) 1
|
Base class for all Points/Vectors with two double values. More...
#include <b2dtuple.hxx>
Public Member Functions | |
B2DTuple () | |
Create a 2D Tuple. More... | |
B2DTuple (double fX, double fY) | |
Create a 2D Tuple. More... | |
B2DTuple (Tuple2D< double > const &rTuple) | |
BASEGFX_DLLPUBLIC | B2DTuple (const B2ITuple &rTup) |
Create a copy of a 2D integer Tuple. More... | |
B2DTuple | operator- (void) const |
Public Member Functions inherited from basegfx::Tuple2D< double > | |
Tuple2D (double x, double y) | |
Create a 2D Tuple. More... | |
double | get (Axis2D eAxis) |
void | set (Axis2D eAxis, double fValue) |
double | getX () const |
Get X-Coordinate of 2D Tuple. More... | |
double | getY () const |
Get Y-Coordinate of 2D Tuple. More... | |
void | setX (double fX) |
Set X-Coordinate of 2D Tuple. More... | |
void | setY (double fY) |
Set Y-Coordinate of 2D Tuple. More... | |
void | adjustX (double fX) |
Adjust X-Coordinate of 2D Tuple. More... | |
void | adjustY (double fY) |
Adjust Y-Coordinate of 2D Tuple. More... | |
bool | equal (const Tuple2D< double > &rTup) const |
bool | equal (const Tuple2D< double > &rTup) const |
bool | equalZero () const |
bool | equalZero () const |
Tuple2D< double > & | operator+= (const Tuple2D< double > &rTup) |
Tuple2D< double > & | operator-= (const Tuple2D< double > &rTup) |
Tuple2D< double > & | operator/= (const Tuple2D< double > &rTup) |
Tuple2D< double > & | operator/= (double t) |
Tuple2D< double > & | operator*= (const Tuple2D< double > &rTup) |
Tuple2D< double > & | operator*= (double t) |
Tuple2D< double > | operator- (void) const |
bool | operator== (const Tuple2D< double > &rTup) const |
bool | operator!= (const Tuple2D< double > &rTup) const |
Static Public Member Functions | |
static BASEGFX_DLLPUBLIC const B2DTuple & | getEmptyTuple () |
Additional Inherited Members | |
Public Attributes inherited from basegfx::Tuple2D< double > | |
double | mnX |
double | mnY |
double | mfX |
double | mfY |
Protected Attributes inherited from basegfx::Tuple2D< double > | |
union { | |
struct { | |
TYPE mnX | |
TYPE mnY | |
} | |
struct { | |
TYPE mfX | |
TYPE mfY | |
} | |
}; | |
Base class for all Points/Vectors with two double values.
This class provides all methods common to Point and Vector classes which are derived from here.
Definition at line 38 of file b2dtuple.hxx.
|
inline |
Create a 2D Tuple.
The tuple is initialized to (0.0, 0.0)
Definition at line 46 of file b2dtuple.hxx.
|
inline |
Create a 2D Tuple.
fX | This parameter is used to initialize the X-coordinate of the 2D Tuple. |
fY | This parameter is used to initialize the Y-coordinate of the 2D Tuple. |
Definition at line 60 of file b2dtuple.hxx.
|
inline |
Definition at line 64 of file b2dtuple.hxx.
|
explicit |
Create a copy of a 2D integer Tuple.
rTup | The 2D Tuple which will be copied. |
Definition at line 32 of file b2dtuple.cxx.
|
static |
Definition at line 26 of file b2dtuple.cxx.
Referenced by basegfx::B2DPoint::getEmptyPoint(), and basegfx::B2DVector::getEmptyVector().
|
inline |
Definition at line 77 of file b2dtuple.hxx.