CFx SDK Documentation 2024 SP0
|
#include <AECECS.h>
Static Public Member Functions | |
static AECECS | translation (const OdGeVector3d &vect) |
static AECECS | rotation (double angle, const OdGeVector3d &axis, const OdGePoint3d ¢er=OdGePoint3d::kOrigin) |
static AECECS | scaling (double scale, const OdGePoint3d ¢er=OdGePoint3d::kOrigin) |
static AECECS | scaling (const OdGeScale3d &scale, const OdGePoint3d ¢er=OdGePoint3d::kOrigin) |
static AECECS | mirroring (const OdGePlane &mirrorPlane) |
static AECECS | mirroring (const OdGePoint3d &mirrorPoint) |
static AECECS | mirroring (const OdGeLine3d &mirrorLine) |
static AECECS | projection (const OdGePlane &projectionPlane, const OdGeVector3d &projectDir) |
static AECECS | alignCoordSys (const OdGePoint3d &fromOrigin, const OdGeVector3d &fromXAxis, const OdGeVector3d &fromYAxis, const OdGeVector3d &fromZAxis, const OdGePoint3d &toOrigin, const OdGeVector3d &toXAxis, const OdGeVector3d &toYAxis, const OdGeVector3d &toZAxis) |
static AECECS | worldToPlane (const OdGeVector3d &normal) |
static AECECS | worldToPlane (const OdGePlane &plane) |
static AECECS | planeToWorld (const OdGeVector3d &normal) |
static AECECS | planeToWorld (const OdGePlane &plane) |
Public Attributes | |
OdGePoint3d | m_origin |
OdGeVector3d | m_xAxis |
OdGeVector3d | m_yAxis |
OdGeVector3d | m_zAxis |
Static Public Attributes | |
static const AECECS | kIdentity |
This class represents 3D transformation matrices that define affine ( translation, rotation, and/or scaling ) transformations.
Library: AecBase
<group TA_Other_Classes>
|
inline |
|
inline |
|
static |
Returns the matrix which maps the coordinate system defined by fromOrigin, fromXAxis, fromYAxis, and fromZAxis, to the coordinate system defined by toOrigin, toXAxis, toYAxis, and toZAxis.
fromOrigin | [in] Origin of the initial coordinate system. |
fromXAxis | [in] X-axis of the initial coordinate system. |
fromYAxis | [in] Y-axis of the initial coordinate system. |
fromZAxis | [in] Z-axis of the initial coordinate system. |
toOrigin | [in] Origin of the initial coordinate system. |
toXAxis | [in] X-axis of the initial coordinate system. |
toYAxis | [in] Y-axis of the initial coordinate system. |
toZAxis | [in] Z-axis of the initial coordinate system. |
OdGeMatrix2d AECECS::convertToLocal | ( | OdGeVector3d & | normal, |
double & | elevation | ||
) | const |
Transforms the plane specified by a normal and an elevation.
normal | [in/out] Normal to the plane. |
elevation | [in/out] Elevation of the plane. |
OdGeMatrix2d AECECS::convertToLocalXY | ( | ) | const |
double AECECS::det | ( | ) | const |
Returns the determinant of this matrix.
|
inline |
Returns or references entry[row] as matrix[row].
row | [in] Row. const double* operator[] ( int row ) const { return entry[row]; } double* operator[] ( int row ) { return entry[row]; } |
Returns or references entry[row][column] as matrix(row,column).
row | [in] Row. |
column | [in] Column. double operator () ( int row, int column ) const { return entry[row][column]; } double& operator () ( int row, int column ) { return entry[row][column]; } |
void AECECS::getCoordSystem | ( | OdGePoint3d & | origin, |
OdGeVector3d & | xAxis, | ||
OdGeVector3d & | yAxis, | ||
OdGeVector3d & | zAxis | ||
) | const |
Returns the origin, X-axis, Y-axis, and Z-axis of the coordinate system to which this matrix maps the WCS.
origin | [out] Receives the origin of the coordinate system. |
xAxis | [out] Receives the X-axis of the coordinate system. |
yAxis | [out] Receives the Y-axis of the coordinate system. |
zAxis | [out] Receives the Z-axis of the coordinate system. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool AECECS::inverse | ( | AECECS & | inverseMatrix, |
double | tol | ||
) | const |
|
inline |
bool AECECS::isEqualTo | ( | const AECECS & | matrix, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns true if and only if matrix is identical to this one, within the specified tolerance.
matrix | [in] Matrix to be compared. |
tol | [in] Geomentric tolerance. |
bool AECECS::isScaledOrtho | ( | const OdGeTol & | tol = OdGeContext::gTol | ) | const |
Returns true if and only the column vectors of the linear part of this matrix are mutually perpendicular within the specified tolerance.
tol | [in] Geomentric tolerance. |
bool AECECS::isSingular | ( | const OdGeTol & | tol = OdGeContext::gTol | ) | const |
Returns true if and only if this matrix is singular.
bool AECECS::isUniScaledOrtho | ( | const OdGeTol & | tol = OdGeContext::gTol | ) | const |
Returns true if and only the columns vectors of the linear part of this matrix are of equal length and mutually perpendicular within the specified tolerance.
tol | [in] Geomentric tolerance. |
|
static |
Sets this matrix to the matrix which mirrors about the specified object, and returns a reference to this matrix.
mirrorPlane | [in] Mirror plane. |
mirrorPoint | [in] Mirror point. |
mirrorLine | [in] Mirror line entity. |
|
static |
double AECECS::norm | ( | ) | const |
Returns the largest absolute value of the linear part of this matrix.
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Returns the matrix which maps the plane coordinate system to the WCS.
normal | [in] The normal to the plane. |
plane | [in] The plane. |
|
static |
Returns the matrix which parallel projects onto the specified plane in the specified direction.
projectionPlane | [in] Projection plane. |
projectDir | [in] Projection direction. |
|
inlinestatic |
double AECECS::scale | ( | ) | const |
Returns the matrix which maps the coordinate system defined by fromOrigin, fromXAxis, fromYAxis, and fromZAxis, to the coordinate system defined by toOrigin, toXAxis, toYAxis, and toZAxis.
Get the length of the MAXIMUM column of the 3x3 portion of the matrix.
Returns the scale factor of this matrix.
|
inlinestatic |
|
inlinestatic |
|
inline |
Sets this matrix to the matrix which maps the WCS to the coordinate system defined by origin, X-axis, Y-axis, and Z-axis, and returns a reference to this matrix.
origin | [in] Origin of the coordinate system. |
xAxis | [in] X-axis of the coordinate system. |
yAxis | [in] Y-axis of the coordinate system. |
zAxis | [in] Z-axis of the coordinate system. |
AECECS & AECECS::setToAlignCoordSys | ( | const OdGePoint3d & | fromOrigin, |
const OdGeVector3d & | fromXAxis, | ||
const OdGeVector3d & | fromYAxis, | ||
const OdGeVector3d & | fromZAxis, | ||
const OdGePoint3d & | toOrigin, | ||
const OdGeVector3d & | toXAxis, | ||
const OdGeVector3d & | toYAxis, | ||
const OdGeVector3d & | toZAxis | ||
) |
Sets this matrix to the matrix which maps the coordinate system defined by fromOrigin, fromXAxis, fromYAxis, and fromZAxis, to the coordinate system defined by toOrigin, toXAxis, toYAxis, and toZAxis, and returns a reference to this matrix.
fromOrigin | [in] Origin of the initial coordinate system. |
fromXAxis | [in] X-axis of the initial coordinate system. |
fromYAxis | [in] Y-axis of the initial coordinate system. |
fromZAxis | [in] Z-axis of the initial coordinate system. |
toOrigin | [in] Origin of the initial coordinate system. |
toXAxis | [in] X-axis of the initial coordinate system. |
toYAxis | [in] Y-axis of the initial coordinate system. |
toZAxis | [in] Z-axis of the initial coordinate system. |
AECECS & AECECS::setToIdentity | ( | ) |
|
inline |
|
inline |
AECECS & AECECS::setToPlaneToWorld | ( | const OdGeVector3d & | normal | ) |
Sets this matrix to the matrix which maps the plane coordinate system to the WCS, and returns a reference to this matrix.
normal | [in] The normal to the plane. |
plane | [in] The plane. |
Sets this matrix to the product matrix1 * matrix2, and returns a reference to this matrix.
matrix1 | [in] Any 2D matrix |
matrix2 | [in] Any 2D matrix |
|
inline |
AECECS & AECECS::setToRotation | ( | double | angle, |
const OdGeVector3d & | axis, | ||
const OdGePoint3d & | center = OdGePoint3d::kOrigin |
||
) |
Sets this matrix to the matrix which rotates by angle about an axis passing through center, and returns a reference to this matrix.
angle | [in] Rotation angle. |
axis | [in] Rotation axis. |
center | [in] Center of rotation. |
AECECS & AECECS::setToScaling | ( | const OdGeScale3d & | scale, |
const OdGePoint3d & | center = OdGePoint3d::kOrigin |
||
) |
AECECS & AECECS::setToScaling | ( | double | scale, |
const OdGePoint3d & | center = OdGePoint3d::kOrigin |
||
) |
Sets this matrix to the matrix which scales by scale about center, and returns a reference to this matrix.
scale | [in] Scale factor. |
center | [in] Center of scaling. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
static |
Returns the matrix which maps the WCS to the plane coordinate system.
normal | [in] The normal to the plane. |
plane | [in] The plane. |
OdGePoint3d AECECS::m_origin |
OdGeVector3d AECECS::m_xAxis |
OdGeVector3d AECECS::m_yAxis |
OdGeVector3d AECECS::m_zAxis |