libt3d  2.6
Functions
C++ API

Functions

 R3D (T3DType type, int flags, T3DError error, const double *d1=0x0, const double *d2=0x0)
 R3D constructor. More...
 
 R3D (T3DType type=T3D_MATRIX, int flags=0)
 R3D constructor. More...
 
 R3D (const R3D *r3d)
 R3D constructor. More...
 
 R3D (const T3DMatrix &m)
 R3D::R3D(const R3D *r3d) More...
 
R3DconvertTo (T3DType type)
 Convert a R3D into another representation. More...
 
R3Dinvert (void)
 Invert a R3D. More...
 
R3D operator~ (void)
 Inverse of a R3D. More...
 
R3D operator* (R3D &r3d)
 Compose two R3D. More...
 
double & operator[] (unsigned int i)
 Acessor for matrices elements. More...
 
double & operator() (unsigned int i, unsigned int j)
 Acessor for matrices elements. More...
 
double & operator[] (int i)
 Accessor for Tait-Brayan angles. More...
 
double & operator[] (T3DBryanIndex i)
 Accessor for Tait-Brayan angles. More...
 
 T3D (T3DType type, int flags, T3DError error, const double *d1=0x0, const double *d2=0x0)
 T3D constructor. More...
 
 T3D (T3DType type=T3D_MATRIX, int flags=0)
 T3D constructor. More...
 
 T3D (const T3D *t3d)
 T3D constructor. More...
 
 T3D (const T3DMatrix &m)
 T3D constructor. More...
 
 T3D (double _yaw, double _pitch, double _roll, double _x, double _y, double _z)
 T3DBryan constructor. More...
 
T3DconvertTo (T3DType type)
 Convert a T3D into another representation. More...
 
T3Dinvert (void)
 Invert a T3D. More...
 
T3D operator~ (void) const
 Inverse of a T3D. More...
 
T3D operator* (T3D &t3d)
 Composition of two T3D. More...
 

Detailed Description

Function Documentation

◆ convertTo() [1/2]

R3D & convertTo ( T3DType  type)
inline

Convert a R3D into another representation.

See also
r3dConvertTo().
Parameters
[in]typeType to convert to.

◆ convertTo() [2/2]

T3D & convertTo ( T3DType  type)
inline

Convert a T3D into another representation.

See also
t3dConvertTo().
Parameters
[in]typeType to convert to.

◆ invert() [1/2]

R3D & invert ( void  )
inline

Invert a R3D.

Invert r3d object.

See also
r3dInvert().

◆ invert() [2/2]

T3D & invert ( void  )
inline

Invert a T3D.

Invert t3d object.

See also
t3dInvert().

◆ operator()()

double & operator() ( unsigned int  i,
unsigned int  j 
)
inline

Acessor for matrices elements.

The function return the element (i,j) of the homogeneous matrix.

Parameters
[in]i,jMatrix element indices.
Returns
reference to element.

◆ operator*() [1/2]

R3D operator* ( R3D r3d)
inline

Compose two R3D.

In the expression this*r3d, return the composition of r3d by this.

See also
r3dComp().
Parameters
[in]r3dFirst transformation.

◆ operator*() [2/2]

T3D operator* ( T3D t3d)
inline

Composition of two T3D.

In the expression this*t3d, return the composition of t3d by this.

See also
t3dComp().
Parameters
[in]t3dFirst transformation.

◆ operator[]() [1/3]

double & operator[] ( unsigned int  i)
inline

Acessor for matrices elements.

The function return the element i of the homogeneous matrix. Elements are numbered in 'row-major' mode.

Parameters
[in]iMatrix element number.
Returns
reference to element.

◆ operator[]() [2/3]

double & operator[] ( int  i)
inline

Accessor for Tait-Brayan angles.

Parameters
[in]iAngle number,
See also
T3DBryanIndex.
Returns
a reference on the angle value.

◆ operator[]() [3/3]

double & operator[] ( T3DBryanIndex  i)
inline

Accessor for Tait-Brayan angles.

Parameters
[in]iAngle number,
See also
T3DBryanIndex.
Returns
a reference on the angle value.

◆ operator~() [1/2]

R3D operator~ ( void  )
inline

Inverse of a R3D.

Return the inverse of r3d.

See also
r3dInvert().

◆ operator~() [2/2]

T3D operator~ ( void  ) const
inline

Inverse of a T3D.

Return the inverse of t3d.

See also
t3dInvert().

◆ R3D() [1/4]

R3D ( T3DType  _type,
int  _flags,
T3DError  error,
const double *  d1 = 0x0,
const double *  d2 = 0x0 
)
inline

R3D constructor.

Initialize a 3D rotation to Identity.

Parameters
[in]typeInternal representation.
[in]flagsOptional parameters to alter the default behavior

◆ R3D() [2/4]

R3D ( T3DType  type = T3D_MATRIX,
int  flags = 0 
)
inline

R3D constructor.

Initialize a 3D rotation to Identity.

Parameters
[in]typeInternal representation.
[in]flagsOptional parameters to alter the default behavior

◆ R3D() [3/4]

R3D ( const R3D r3d)
inline

R3D constructor.

Initialize a 3D rotation equal to r3d.

Parameters
[in]r3dCopied transformation.

◆ R3D() [4/4]

R3D ( const T3DMatrix m)
inline

◆ T3D() [1/5]

T3D ( T3DType  _type,
int  _flags,
T3DError  error,
const double *  d1 = 0x0,
const double *  d2 = 0x0 
)
inline

T3D constructor.

Initialize a 3D transformation to Identity.

Parameters
[in]typeInternal representation.
[in]flagsOptional parameters to alter the default behavior

◆ T3D() [2/5]

T3D ( T3DType  type = T3D_MATRIX,
int  flags = 0 
)
inline

T3D constructor.

Initialize a 3D transformation to Identity.

Parameters
[in]typeInternal representation.
[in]flagsOptional parameters to alter the default behavior

◆ T3D() [3/5]

T3D ( const T3D t3d)
inline

T3D constructor.

Initialize a 3D transformation equal to t3d.

Parameters
[in]t3dCopied transformation.

◆ T3D() [4/5]

T3D ( const T3DMatrix t3d)
inline

T3D constructor.

Initialize a 3D transformation equal to t3d.

Parameters
[in]t3dCopied transformation.

◆ T3D() [5/5]

T3D ( double  yaw,
double  pitch,
double  roll,
double  x,
double  y,
double  z 
)
inline

T3DBryan constructor.

Initialize a 3D transformation with the given angles and translations.

Parameters
[in]yawRotation around Z.
[in]pitchRotation around Y.
[in]rollRotation around X.
[in]xTranslation along X.
[in]yTranslation along Y.
[in]zTranslation along Z.