|
LibreOffice Module basegfx (master) 1
|
Base Point class with three double values. More...
#include <b3dpoint.hxx>
Public Member Functions | |
| B3DPoint () | |
| Create a 3D Point. More... | |
| B3DPoint (double fX, double fY, double fZ) | |
| Create a 3D Point. More... | |
| B3DPoint (const ::basegfx::B3DTuple &rTuple) | |
| constructor with tuple to allow copy-constructing from B3DTuple-based classes More... | |
| B3DPoint & | operator*= (const B3DPoint &rPnt) |
| *=operator to allow usage from B3DPoint, too More... | |
| B3DPoint & | operator*= (double t) |
| *=operator to allow usage from B3DPoint, too More... | |
| B3DPoint & | operator= (const ::basegfx::B3DTuple &rVec) |
| assignment operator to allow assigning the results of B3DTuple calculations More... | |
| B3DPoint & | operator*= (const ::basegfx::B3DHomMatrix &rMat) |
| Transform point by given transformation matrix. More... | |
Public Member Functions inherited from basegfx::B3DTuple | |
| 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 |
Additional Inherited Members | |
Static Public Member Functions inherited from basegfx::B3DTuple | |
| static const B3DTuple & | getEmptyTuple () |
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 Point class with three double values.
This class derives all operators and common handling for a 3D data class from B3DTuple. All necessary extensions which are special for points will be added here.
Definition at line 37 of file b3dpoint.hxx.
|
inline |
Create a 3D Point.
The point is initialized to (0.0, 0.0, 0.0)
Definition at line 44 of file b3dpoint.hxx.
|
inline |
|
inline |
constructor with tuple to allow copy-constructing from B3DTuple-based classes
Definition at line 68 of file b3dpoint.hxx.
| B3DPoint & basegfx::B3DPoint::operator*= | ( | const ::basegfx::B3DHomMatrix & | rMat | ) |
Transform point by given transformation matrix.
The translational components of the matrix are, in contrast to B3DVector, applied.
Definition at line 26 of file b3dpoint.cxx.
References basegfx::fTools::equal(), basegfx::fTools::equalZero(), basegfx::Tuple3D< double >::mfX, basegfx::Tuple3D< double >::mfY, and basegfx::Tuple3D< double >::mfZ.
*=operator to allow usage from B3DPoint, too
Definition at line 74 of file b3dpoint.hxx.
References mfX, basegfx::Tuple3D< TYPE >::mfX, mfY, basegfx::Tuple3D< TYPE >::mfY, and basegfx::Tuple3D< TYPE >::mfZ.
|
inline |
|
inline |
assignment operator to allow assigning the results of B3DTuple calculations
Definition at line 95 of file b3dpoint.hxx.