#include <mi32/trans3d.h>
Public Types | |
| enum | AXIS { AXIS_X = 0, AXIS_Y = 1, AXIS_Z = 2 } |
| enum | PLANE { PLANE_XY = 0, PLANE_XZ = 1, PLANE_YZ = 2 } |
Public Member Functions | |
| TRANS3D (const TRANS3D &in1, const TRANS3D &in2) | |
| TRANS3D (const TRANS3D &rhs) | |
| TRANS3D () | |
| ~TRANS3D () | |
| void | ApplyMatrices (const MAT4X4 fwd, const MAT4X4 inv) |
| void | ApplyOffset (const DPOINT3D &point, bool inverse=false) |
| void | ApplyOffset (double xoffset, double yoffset, double zoffset, bool inverse=false) |
| void | ApplyRotation (double angle, AXIS axis, bool inverse=false) |
| void | ApplyScale (double xscale, double yscale, double zscale, bool inverse=false) |
| void | ApplyShear (double shear1, double shear2, PLANE plane, bool inverse=false) |
| FPOINT3DH | ConvertForward (const FPOINT3DH ipoint) const |
| void | ConvertForward (const FPOINT3DH *ipoints, FPOINT3DH *opoints, INT32 numpoints) const |
| FPOINT3D | ConvertForward (const FPOINT3D ipoint) const |
| void | ConvertForward (const FPOINT3D *ipoints, FPOINT3D *opoints, INT32 numpoints) const |
| DPOINT3DH | ConvertForward (const DPOINT3DH ipoint) const |
| void | ConvertForward (const DPOINT3DH *ipoints, DPOINT3DH *opoints, INT32 numpoints) const |
| DPOINT3D | ConvertForward (const DPOINT3D ipoint) const |
| void | ConvertForward (const DPOINT3D *ipoints, DPOINT3D *opoints, INT32 numpoints) const |
| FPOINT3DH | ConvertInverse (const FPOINT3DH ipoint) const |
| void | ConvertInverse (const FPOINT3DH *ipoints, FPOINT3DH *opoints, INT32 numpoints) const |
| FPOINT3D | ConvertInverse (const FPOINT3D ipoint) const |
| void | ConvertInverse (const FPOINT3D *ipoints, FPOINT3D *opoints, INT32 numpoints) const |
| DPOINT3DH | ConvertInverse (const DPOINT3DH ipoint) const |
| void | ConvertInverse (const DPOINT3DH *ipoints, DPOINT3DH *opoints, INT32 numpoints) const |
| DPOINT3D | ConvertInverse (const DPOINT3D ipoint) const |
| void | ConvertInverse (const DPOINT3D *ipoints, DPOINT3D *opoints, INT32 numpoints) const |
| const MAT4X4 & | GetForward () const |
| const MAT4X4 & | GetInverse () const |
| TRANS3D & | operator= (const TRANS3D &rhs) |
| void | SetIdentity () |
TRANS3D class.
| enum TRANS3D::AXIS |
| enum TRANS3D::PLANE |
| TRANS3D::TRANS3D | ( | ) |
Default constructor.
| TRANS3D::TRANS3D | ( | const TRANS3D & | rhs | ) |
Copy constructor.
Construct as combination of two transformations.
| TRANS3D::~TRANS3D | ( | ) |
Destructor.
Apply forward/inverse 3D matrices to transformation.
| fwd | Forward transformation matrix | |
| inv | Inverse transformation matrix |
| void TRANS3D::ApplyOffset | ( | const DPOINT3D & | point, | |
| bool | inverse = false | |||
| ) |
Apply coordinate offset.
| point | Offset as X/Y/Z | |
| inverse | Apply in inverse direction |
| void TRANS3D::ApplyOffset | ( | double | xoffset, | |
| double | yoffset, | |||
| double | zoffset, | |||
| bool | inverse = false | |||
| ) |
Apply coordinate offset.
| xoffset | X offset | |
| yoffset | Y offset | |
| zoffset | Z offset | |
| inverse | Apply in inverse direction |
| void TRANS3D::ApplyRotation | ( | double | angle, | |
| AXIS | axis, | |||
| bool | inverse = false | |||
| ) |
Apply rotation.
| angle | Angle in radians | |
| axis | Axis of rotation | |
| inverse | Apply in inverse direction |
| void TRANS3D::ApplyScale | ( | double | xscale, | |
| double | yscale, | |||
| double | zscale, | |||
| bool | inverse = false | |||
| ) |
Apply scale.
| xscale | X scale | |
| yscale | Y scale | |
| zscale | Z scale | |
| inverse | Apply in inverse direction |
| void TRANS3D::ApplyShear | ( | double | shear1, | |
| double | shear2, | |||
| PLANE | plane, | |||
| bool | inverse = false | |||
| ) |
Apply equal scale to all axes.
void ApplyScale ( double scale, // Scale bool inverse = false // Apply in inverse direction ) { ApplyScale(scale,scale,scale,inverse); return; } Apply scale void ApplyScale ( const DPOINT3D& point, // X/Y/Z scale bool inverse = false // Apply in inverse direction ) { ApplyScale(point.x,point.y,point.z,inverse); return; } Apply shear in given plane
| shear1 | First axis shear in radians | |
| shear2 | Second axis shear in radians | |
| plane | Shear plane | |
| inverse | Apply in inverse direction |
Perform forward conversion on single 3DH point.
| ipoint | Point to convert |
| void TRANS3D::ConvertForward | ( | const FPOINT3DH * | ipoints, | |
| FPOINT3DH * | opoints, | |||
| INT32 | numpoints | |||
| ) | const |
Returns converted point.
Perform forward conversion on FPOINT3DH array
| ipoints | Source point array | |
| opoints | Destination point array | |
| numpoints | Number of points to convert |
Perform forward conversion on single 3D point.
| ipoint | Point to convert |
| void TRANS3D::ConvertForward | ( | const FPOINT3D * | ipoints, | |
| FPOINT3D * | opoints, | |||
| INT32 | numpoints | |||
| ) | const |
Returns converted point.
Perform forward conversion on FPOINT3D array
| ipoints | Source point array | |
| opoints | Destination point array | |
| numpoints | Number of points to convert |
Perform forward conversion on single 3DH point.
| ipoint | Point to convert |
| void TRANS3D::ConvertForward | ( | const DPOINT3DH * | ipoints, | |
| DPOINT3DH * | opoints, | |||
| INT32 | numpoints | |||
| ) | const |
Returns converted point.
Perform forward conversion on DPOINT3DH array
| ipoints | Source point array | |
| opoints | Destination point array | |
| numpoints | Number of points to convert |
Perform forward conversion on single 3D point.
| ipoint | Point to convert |
| void TRANS3D::ConvertForward | ( | const DPOINT3D * | ipoints, | |
| DPOINT3D * | opoints, | |||
| INT32 | numpoints | |||
| ) | const |
Perform forward conversion on DPOINT3D array.
| ipoints | Source point array | |
| opoints | Destination point array | |
| numpoints | Number of points to convert |
Perform inverse conversion on single 3DH point.
| ipoint | Point to convert |
| void TRANS3D::ConvertInverse | ( | const FPOINT3DH * | ipoints, | |
| FPOINT3DH * | opoints, | |||
| INT32 | numpoints | |||
| ) | const |
Returns converted point.
Perform inverse conversion on FPOINT3DH array
| ipoints | Source point array | |
| opoints | Destination point array | |
| numpoints | Number of points to convert |
Perform inverse conversion on single 3D point.
| ipoint | Point to convert |
| void TRANS3D::ConvertInverse | ( | const FPOINT3D * | ipoints, | |
| FPOINT3D * | opoints, | |||
| INT32 | numpoints | |||
| ) | const |
Returns converted point.
Perform inverse conversion on FPOINT3D array
| ipoints | Source point array | |
| opoints | Destination point array | |
| numpoints | Number of points to convert |
Perform inverse conversion on single 3DH point.
| ipoint | Point to convert |
| void TRANS3D::ConvertInverse | ( | const DPOINT3DH * | ipoints, | |
| DPOINT3DH * | opoints, | |||
| INT32 | numpoints | |||
| ) | const |
Returns converted point.
Perform inverse conversion on DPOINT3DH array
| ipoints | Source point array | |
| opoints | Destination point array | |
| numpoints | Number of points to convert |
Perform inverse conversion on single 3D point.
| ipoint | Point to convert |
| void TRANS3D::ConvertInverse | ( | const DPOINT3D * | ipoints, | |
| DPOINT3D * | opoints, | |||
| INT32 | numpoints | |||
| ) | const |
Returns converted point.
Perform inverse conversion on DPOINT3D array
| ipoints | Source point array | |
| opoints | Destination point array | |
| numpoints | Number of points to convert |
| const MAT4X4& TRANS3D::GetForward | ( | ) | const |
| const MAT4X4& TRANS3D::GetInverse | ( | ) | const |
| void TRANS3D::SetIdentity | ( | ) |
Returns converted point.
Set transformation to identity
1.6.1