LibreOffice Module basegfx (master) 1
|
Base class for all Points/Vectors with three double values. More...
#include <b3dtuple.hxx>
Public Member Functions | |
B3DTuple () | |
Create a 3D Tuple. More... | |
B3DTuple (double fX, double fY, double fZ) | |
Create a 3D Tuple. More... | |
const double & | operator[] (int nPos) const |
Array-access to 3D Tuple. More... | |
double & | operator[] (int nPos) |
Array-access to 3D Tuple. More... | |
bool | equalZero () const |
bool | equal (const B3DTuple &rTup) const |
B3DTuple | operator- (void) const |
bool | operator== (const B3DTuple &rTup) const |
bool | operator!= (const B3DTuple &rTup) const |
void | correctValues (const double fCompareValue=0.0) |
Public Member Functions inherited from basegfx::Tuple3D< double > | |
Tuple3D (double x, double y, double z) | |
Create a 3D Tuple. More... | |
double | getX () const |
Get X-Coordinate of 3D Tuple. More... | |
double | getY () const |
Get Y-Coordinate of 3D Tuple. More... | |
double | getZ () const |
Get Z-Coordinate of 3D Tuple. More... | |
void | setX (double fX) |
Set X-Coordinate of 3D Tuple. More... | |
void | setY (double fY) |
Set Y-Coordinate of 3D Tuple. More... | |
void | setZ (double fZ) |
Set Z-Coordinate of 3D Tuple. More... | |
Tuple3D & | operator+= (const Tuple3D &rTup) |
Tuple3D & | operator-= (const Tuple3D &rTup) |
Tuple3D & | operator/= (const Tuple3D &rTup) |
Tuple3D & | operator/= (double t) |
Tuple3D & | operator*= (const Tuple3D &rTup) |
Tuple3D & | operator*= (double t) |
bool | operator== (const Tuple3D &rTup) const |
bool | operator!= (const Tuple3D &rTup) const |
Static Public Member Functions | |
static const B3DTuple & | getEmptyTuple () |
Additional Inherited Members | |
Public Attributes inherited from basegfx::Tuple3D< double > | |
double | mnX |
double | mnY |
double | mnZ |
double | mfX |
double | mfY |
double | mfZ |
Protected Attributes inherited from basegfx::Tuple3D< double > | |
union { | |
struct { | |
TYPE mnX | |
TYPE mnY | |
TYPE mnZ | |
} | |
struct { | |
TYPE mfX | |
TYPE mfY | |
TYPE mfZ | |
} | |
}; | |
Base class for all Points/Vectors with three double values.
This class provides all methods common to Point and Vector classes which are derived from here.
Definition at line 39 of file b3dtuple.hxx.
|
inline |
Create a 3D Tuple.
The tuple is initialized to (0.0, 0.0, 0.0)
Definition at line 46 of file b3dtuple.hxx.
|
inline |
Create a 3D Tuple.
fX | This parameter is used to initialize the X-coordinate of the 3D Tuple. |
fY | This parameter is used to initialize the Y-coordinate of the 3D Tuple. |
fZ | This parameter is used to initialize the Z-coordinate of the 3D Tuple. |
Definition at line 64 of file b3dtuple.hxx.
|
inline |
Definition at line 122 of file b3dtuple.hxx.
References basegfx::fTools::equalZero(), mfX, and mfY.
Referenced by basegfx::B3DHomMatrix::decompose().
|
inline |
Definition at line 97 of file b3dtuple.hxx.
References mfX, basegfx::Tuple3D< TYPE >::mfX, mfY, basegfx::Tuple3D< TYPE >::mfY, and basegfx::Tuple3D< TYPE >::mfZ.
Referenced by basegfx::utils::checkClosed(), basegfx::utils::getCutBetweenLineAndPlane(), basegfx::utils::implHandleFirstLast(), basegfx::utils::isPointOnLine(), and basegfx::utils::isPointOnPolygon().
|
inline |
Definition at line 89 of file b3dtuple.hxx.
References basegfx::fTools::equalZero(), mfX, and mfY.
Referenced by basegfx::utils::getCutBetweenLineAndPlane(), and basegfx::utils::isInside().
|
static |
Definition at line 25 of file b3dtuple.cxx.
Referenced by basegfx::BColor::getEmptyBColor(), and basegfx::B3DVector::getEmptyVector().
|
inline |
Definition at line 120 of file b3dtuple.hxx.
References operator==().
|
inline |
Definition at line 108 of file b3dtuple.hxx.
|
inline |
Definition at line 113 of file b3dtuple.hxx.
References mfX, basegfx::Tuple3D< TYPE >::mfX, mfY, basegfx::Tuple3D< TYPE >::mfY, and basegfx::Tuple3D< TYPE >::mfZ.
|
inline |
|
inline |