LibreOffice Module basegfx (master) 1
Public Member Functions | Protected Attributes | List of all members
basegfx::Tuple3D< TYPE > Class Template Reference

#include <Tuple3D.hxx>

Inheritance diagram for basegfx::Tuple3D< TYPE >:
[legend]

Public Member Functions

 Tuple3D (TYPE x, TYPE y, TYPE z)
 Create a 3D Tuple. More...
 
TYPE getX () const
 Get X-Coordinate of 3D Tuple. More...
 
TYPE getY () const
 Get Y-Coordinate of 3D Tuple. More...
 
TYPE getZ () const
 Get Z-Coordinate of 3D Tuple. More...
 
void setX (TYPE fX)
 Set X-Coordinate of 3D Tuple. More...
 
void setY (TYPE fY)
 Set Y-Coordinate of 3D Tuple. More...
 
void setZ (TYPE fZ)
 Set Z-Coordinate of 3D Tuple. More...
 
Tuple3Doperator+= (const Tuple3D &rTup)
 
Tuple3Doperator-= (const Tuple3D &rTup)
 
Tuple3Doperator/= (const Tuple3D &rTup)
 
Tuple3Doperator*= (const Tuple3D &rTup)
 
Tuple3Doperator*= (TYPE t)
 
Tuple3Doperator/= (TYPE t)
 
bool operator== (const Tuple3D &rTup) const
 
bool operator!= (const Tuple3D &rTup) const
 

Protected Attributes

union {
   struct {
      TYPE   mnX
 
      TYPE   mnY
 
      TYPE   mnZ
 
   } 
 
   struct {
      TYPE   mfX
 
      TYPE   mfY
 
      TYPE   mfZ
 
   } 
 
}; 
 

Detailed Description

template<typename TYPE>
class basegfx::Tuple3D< TYPE >

Definition at line 15 of file Tuple3D.hxx.

Constructor & Destructor Documentation

◆ Tuple3D()

template<typename TYPE >
basegfx::Tuple3D< TYPE >::Tuple3D ( TYPE  x,
TYPE  y,
TYPE  z 
)
inline

Create a 3D Tuple.

@param x
This parameter is used to initialize the X-coordinate
of the 3D Tuple.

@param y
This parameter is used to initialize the Y-coordinate
of the 3D Tuple.

@param z
This parameter is used to initialize the Z-coordinate
of the 3D Tuple.

Definition at line 49 of file Tuple3D.hxx.

References x, y, and z.

Member Function Documentation

◆ getX()

template<typename TYPE >
TYPE basegfx::Tuple3D< TYPE >::getX ( ) const
inline

◆ getY()

template<typename TYPE >
TYPE basegfx::Tuple3D< TYPE >::getY ( ) const
inline

◆ getZ()

template<typename TYPE >
TYPE basegfx::Tuple3D< TYPE >::getZ ( ) const
inline

◆ operator!=()

template<typename TYPE >
bool basegfx::Tuple3D< TYPE >::operator!= ( const Tuple3D< TYPE > &  rTup) const
inline

Definition at line 129 of file Tuple3D.hxx.

References basegfx::Tuple3D< TYPE >::operator==().

◆ operator*=() [1/2]

template<typename TYPE >
Tuple3D & basegfx::Tuple3D< TYPE >::operator*= ( const Tuple3D< TYPE > &  rTup)
inline

◆ operator*=() [2/2]

template<typename TYPE >
Tuple3D & basegfx::Tuple3D< TYPE >::operator*= ( TYPE  t)
inline

◆ operator+=()

template<typename TYPE >
Tuple3D & basegfx::Tuple3D< TYPE >::operator+= ( const Tuple3D< TYPE > &  rTup)
inline

◆ operator-=()

template<typename TYPE >
Tuple3D & basegfx::Tuple3D< TYPE >::operator-= ( const Tuple3D< TYPE > &  rTup)
inline

◆ operator/=() [1/2]

template<typename TYPE >
Tuple3D & basegfx::Tuple3D< TYPE >::operator/= ( const Tuple3D< TYPE > &  rTup)
inline

◆ operator/=() [2/2]

template<typename TYPE >
Tuple3D & basegfx::Tuple3D< TYPE >::operator/= ( TYPE  t)
inline

◆ operator==()

template<typename TYPE >
bool basegfx::Tuple3D< TYPE >::operator== ( const Tuple3D< TYPE > &  rTup) const
inline

◆ setX()

template<typename TYPE >
void basegfx::Tuple3D< TYPE >::setX ( TYPE  fX)
inline

Set X-Coordinate of 3D Tuple.

Definition at line 66 of file Tuple3D.hxx.

References basegfx::Tuple3D< TYPE >::mnX.

Referenced by basegfx::B3DHomMatrix::decompose().

◆ setY()

template<typename TYPE >
void basegfx::Tuple3D< TYPE >::setY ( TYPE  fY)
inline

Set Y-Coordinate of 3D Tuple.

Definition at line 69 of file Tuple3D.hxx.

References basegfx::Tuple3D< TYPE >::mnY.

Referenced by basegfx::B3DHomMatrix::decompose().

◆ setZ()

template<typename TYPE >
void basegfx::Tuple3D< TYPE >::setZ ( TYPE  fZ)
inline

Set Z-Coordinate of 3D Tuple.

Definition at line 72 of file Tuple3D.hxx.

References basegfx::Tuple3D< TYPE >::mnZ.

Referenced by basegfx::B3DHomMatrix::decompose().

Member Data Documentation

◆ 

union { ... } basegfx::Tuple3D< TYPE >::@11

◆ mfX

template<typename TYPE >
TYPE basegfx::Tuple3D< TYPE >::mfX

◆ mfY

template<typename TYPE >
TYPE basegfx::Tuple3D< TYPE >::mfY

◆ mfZ

template<typename TYPE >
TYPE basegfx::Tuple3D< TYPE >::mfZ

◆ mnX

template<typename TYPE >
TYPE basegfx::Tuple3D< TYPE >::mnX

Definition at line 22 of file Tuple3D.hxx.

Referenced by basegfx::Tuple3D< TYPE >::getX(), and basegfx::Tuple3D< TYPE >::setX().

◆ mnY

template<typename TYPE >
TYPE basegfx::Tuple3D< TYPE >::mnY

Definition at line 23 of file Tuple3D.hxx.

Referenced by basegfx::Tuple3D< TYPE >::getY(), and basegfx::Tuple3D< TYPE >::setY().

◆ mnZ

template<typename TYPE >
TYPE basegfx::Tuple3D< TYPE >::mnZ

Definition at line 24 of file Tuple3D.hxx.

Referenced by basegfx::Tuple3D< TYPE >::getZ(), and basegfx::Tuple3D< TYPE >::setZ().


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