![]() |
pCon.planner Plugin SDK
Version 8.8.1
|
Matrix class. More...
Public Member Functions | |
GeMatrix () | |
Creates an identity matrix. More... | |
GeMatrix (double a00, double a01, double a02, double a03, double a10, double a11, double a12, double a13, double a20, double a21, double a22, double a23, double a30, double a31, double a32, double a33) | |
Creates a matrix from each component. More... | |
GeMatrix (array< double >^pValues) | |
Creates matrix from array with 16 elements. More... | |
GeMatrix (GeMatrix^ other) | |
Duplicates a matrix. More... | |
GeMatrix (GeVec3d xAxis, GeVec3d yAxis, GeVec3d zAxis, GeVec3d origin) | |
Creates a transformation, based on a coordinate system. More... | |
virtual String^ | ToString () override |
Serializes the matrix. More... | |
array< double >^ | Get () |
Return the components of this matrix as double array with 16 elements. More... | |
void | Decompose ([Out] GeVec3d% pTranslation,[Out] GeQuat% pRotation,[Out] GeVec3d% pScale,[Out] GeQuat% pScaleOrientation) |
Decomposes this matrix into translation, rotation, scale and scale orientation. More... | |
GeMatrix^ | PreMult (GeMatrix^ pOther) |
Performs matrix multiplication pOther*this. More... | |
GeMatrix^ | PostMult (GeMatrix^ pOther) |
Performs matrix multiplication this*other. More... | |
GeVec2d | Transform (GeVec2d v) |
Transforms a vector. More... | |
GeVec2f | Transform (GeVec2f v) |
Transforms a vector. More... | |
GeVec3d | Transform (GeVec3d v) |
Transforms a vector. More... | |
GeVec3f | Transform (GeVec3f v) |
Transforms a vector. More... | |
GeVec4d | Transform (GeVec4d v) |
Transforms a vector. More... | |
GeVec4f | Transform (GeVec4f v) |
Transforms a vector. More... | |
GeVec3d | TransformDirection (GeVec3d v) |
Transforms a vector with this matrix by transforming its rotation and scale only. More... | |
GeVec3f | TransformDirection (GeVec3f v) |
Transforms a vector with this matrix by transforming its rotation and scale only. More... | |
bool | IsIdentity () |
Returns true if this matrix is the identity matrix. More... | |
virtual bool | Equals (System::Object^ pOther) override |
Returns true if this matrix equals another matrix. More... | |
Static Public Member Functions | |
static GeMatrix^ | Translate (double x, double y, double z) |
Creates a translation transformation. More... | |
static GeMatrix^ | Translate (GeVec3d v) |
Creates a translation transformation. More... | |
static GeMatrix^ | Translate (GeVec3f v) |
Creates a translation transformation. More... | |
static GeMatrix^ | Scale (double x, double y, double z) |
Creates a scaling transformation. More... | |
static GeMatrix^ | Scale (double v) |
Creates a uniform scaling transformation. More... | |
static GeMatrix^ | Scale (GeVec3d v) |
Creates a scaling transformation. More... | |
static GeMatrix^ | Scale (GeVec3f v) |
Creates a scaling transformation. More... | |
static GeMatrix^ | Rotate (double angle, double x, double y, double z) |
Creates a rotation transformation. More... | |
static GeMatrix^ | Rotate (double angle, GeVec3d axis) |
Creates a rotation transformation. More... | |
static GeMatrix^ | Rotate (double angle, GeVec3f axis) |
Creates a rotation transformation. More... | |
static GeMatrix^ | Rotate (GeQuat q) |
Creates rotation matrix from quaternion. More... | |
static GeMatrix^ | Invert (GeMatrix^ pMatrix) |
Invertes a matrix. More... | |
static GeMatrix^ | Transpose (GeMatrix^ pMatrix) |
Transposes a matrix. More... | |
static GeMatrix^ | NormalMatrix (GeMatrix^ pMatrix) |
Returns the transposed inverse of the linear part. More... | |
Static Public Attributes | |
static GeMatrix^ | Identity = gcnew GeMatrix() |
Identity matrix. More... | |
Matrix class.
X3g::Plugin::GeMatrix::GeMatrix | ( | ) |
Creates an identity matrix.
X3g::Plugin::GeMatrix::GeMatrix | ( | double | a00, |
double | a01, | ||
double | a02, | ||
double | a03, | ||
double | a10, | ||
double | a11, | ||
double | a12, | ||
double | a13, | ||
double | a20, | ||
double | a21, | ||
double | a22, | ||
double | a23, | ||
double | a30, | ||
double | a31, | ||
double | a32, | ||
double | a33 | ||
) |
Creates a matrix from each component.
X3g::Plugin::GeMatrix::GeMatrix | ( | array< double >^ | pValues) |
Creates matrix from array with 16 elements.
X3g::Plugin::GeMatrix::GeMatrix | ( | GeMatrix^ | other) |
Duplicates a matrix.
Creates a transformation, based on a coordinate system.
void X3g::Plugin::GeMatrix::Decompose | ( | [Out] GeVec3d% | pTranslation, |
[Out] GeQuat% | pRotation, | ||
[Out] GeVec3d% | pScale, | ||
[Out] GeQuat% | pScaleOrientation | ||
) |
Decomposes this matrix into translation, rotation, scale and scale orientation.
|
overridevirtual |
Returns true if this matrix equals another matrix.
array< double > X3g::Plugin::GeMatrix::Get | ( | ) |
Return the components of this matrix as double array with 16 elements.
bool X3g::Plugin::GeMatrix::IsIdentity | ( | ) |
Returns true if this matrix is the identity matrix.
Returns the transposed inverse of the linear part.
Normal matrix may be used to transform normals.
Performs matrix multiplication this*other.
If result is used to transform a vector the order is vector*this*other;
Performs matrix multiplication pOther*this.
If result is used to transform a vector the order is vector*other*this;
|
static |
Creates a rotation transformation.
Angle in radians.
Creates a rotation transformation.
Angle in radians.
Creates a rotation transformation.
Angle in radians.
|
static |
Creates a scaling transformation.
|
static |
Creates a uniform scaling transformation.
|
overridevirtual |
Serializes the matrix.
Transforms a vector with this matrix by transforming its rotation and scale only.
Transforms a vector with this matrix by transforming its rotation and scale only.
|
static |
Creates a translation transformation.