Assembly: VM.dll
Implements
IOMatrixConstructors
TMatrix(TMatrix)
Copy construct transformation matrixParameters
mat TMatrix
The matrix to copy
TMatrix(Plane, Vector, Vector, Vector?)
Initializes a new instance of the TMatrix class.Parameters
type Plane
The type of plane.
vecMaster Vector
The vector for master.
vecSlave Vector
The vector for slave.
vecPos Vector?
The position.
TMatrix(double[])
Initializes a new instance of the TMatrix class.Parameters
arr double[]
The data of orientation.
Properties
Array
Get/Set the array of matrix valueProperty Value
double[]Identity
Gets the Identity Transformation Matrix.Property Value
TMatrixInverseTransformationMatrix
Gets the matrix of inverse transform.Property Value
TMatrixExceptions
InvalidOperationException The inverse transform of matrix operation failed.Orientation
Get Orientation vector of matrixProperty Value
OMatrixPosition
Get/Set Position vector of matrixProperty Value
VectorXVector
Get/Set X vector of matrixProperty Value
VectorYVector
Get/Set Y vector of matrixProperty Value
VectorZVector
Get/Set Z vector of matrixProperty Value
Vectorthis[int]
Property Value
Vectorthis[Coordinate]
Get/Set the specific vector of matrixProperty Value
Vectorthis[int, int]
Property Value
doublethis[Coordinate, Coordinate]
Get/Set the specific value of matrix elementProperty Value
doubleMethods
CopyTo(double[], int)
Copy matrix values to the arrayParameters
arr double[]
The array values copied to
nStartIndex int
The start index of array
Exceptions
ArgumentOutOfRangeException The condition : 16 > arr.Length - nStartIndexEquals(object)
Determines whether the specified object is equal to the current object.Parameters
obj object
The object to compare.
Returns
bool true if the objects are equal, otherwise false.GetDirectionVector(Coordinate)
Get the direction vector for axis.Parameters
axis Coordinate
The type of axis.
Returns
Vector The direction vector.GetDirectionVector(int)
Get the direction vector for axis.Parameters
axis int
The type of axis.
Returns
Vector The direction vector.GetHashCode()
Returns the hash code for this vectorReturns
int A 32-bit signed integer hash code.Initialize()
Initialize the Orientation MatrixNormalize()
Normalize the Orientation MatrixExceptions
InvalidOperationException The normalize operation failed .RotateAxisDeg(Coordinate, double)
To rotate counterclockwise for coordinate.Parameters
c Coordinate
The rotation coordinate.
dAngle double
The degree.
Exceptions
InvalidOperationException The rotate operation failed .RotateAxisDeg(int, double)
To rotate counterclockwise for coordinate.Parameters
nCoord int
The rotation coordinate.
dAngle double
The degree.
RotateAxisDeg(Vector, double)
To rotate counterclockwise for axis.Parameters
axis Vector
The rotation axis.
dAngle double
The degree.
Exceptions
InvalidOperationException The rotate operation failed .RotateAxisRad(Coordinate, double)
To rotate counterclockwise for coordinate.Parameters
c Coordinate
The rotation coordinate.
dAngle double
The radian.
Exceptions
InvalidOperationException The rotate operation failed .RotateAxisRad(int, double)
To rotate counterclockwise for coordinate.Parameters
nCoord int
The rotation coordinate.
dAngle double
The radian.
RotateAxisRad(Vector, double)
To rotate counterclockwise for axis.Parameters
axis Vector
The rotation axis.
dAngle double
The radian.
Exceptions
InvalidOperationException The rotate operation failed .RotateXDeg(double)
To rotate counterclockwise for x-axis.Parameters
dAngle double
The degree.
Exceptions
InvalidOperationException The rotate operation failed .RotateXRad(double)
To rotate counterclockwise for x-axis.Parameters
dAngle double
The radian.
Exceptions
InvalidOperationException The rotate operation failed .RotateYDeg(double)
To rotate counterclockwise for y-axis.Parameters
dAngle double
The degree.
Exceptions
InvalidOperationException The rotate operation failed .RotateYRad(double)
To rotate counterclockwise for y-axis.Parameters
dAngle double
The radian.
Exceptions
InvalidOperationException The rotate operation failed .RotateZDeg(double)
To rotate counterclockwise for z-axis.Parameters
dAngle double
The degree.
Exceptions
InvalidOperationException The rotate operation failed .RotateZRad(double)
To rotate counterclockwise for z-axis.Parameters
dAngle double
The radian.
Exceptions
InvalidOperationException The rotate operation failed .Set(TMatrix)
Set data of transformation.Parameters
mat TMatrix
The transform matrix.
Set(double[])
Set data of transformation.Parameters
arr double[]
The transform array.
SetOrientation(Plane, Vector, Vector)
Set data of orientation.Parameters
type Plane
The type of plane.
vecMaster Vector
The vector for master.
vecSlave Vector
The vector for slave.
Exceptions
InvalidOperationException The set data of orientation operation failed .SetOrientation(OMatrix)
Set data of orientation.Parameters
mat OMatrix
The matrix of orientation.
SetOrientation(double[])
Set data of orientation.Parameters
arr double[]
The data of orientation.
SetOrientationEADeg(RotationAxes, double, double, double)
Set data of orientation for euler angle. Unit is degree.Parameters
ea RotationAxes
The type of euler angle.
dAlpha double
The alpha of euler angle.
dBeta double
The beta of euler angle.
dGamma double
The gamma of euler angle.
Exceptions
InvalidOperationException The set data of orientation operation failed .SetOrientationEARad(RotationAxes, double, double, double)
Set data of orientation for euler angle. Unit is radian.Parameters
ea RotationAxes
The type of euler angle.
dAlpha double
The alpha of euler angle.
dBeta double
The beta of euler angle.
dGamma double
The gamma of euler angle.
Exceptions
InvalidOperationException The set data of orientation operation failed .SetOrientationFixedAngleDeg(RotationAxes, double, double, double)
Set data of orientation for fixed angle. Unit is degree.Parameters
ea RotationAxes
The type of fixed angle.
dAlpha double
The alpha of fixed angle.
dBeta double
The beta of fixed angle.
dGamma double
The gamma of fixed angle.
Exceptions
InvalidOperationException The set data of orientation operation failed .SetOrientationFixedAngleRad(RotationAxes, double, double, double)
Set data of orientation for fixed angle. Unit is radian.Parameters
ea RotationAxes
The type of fixed angle.
dAlpha double
The alpha of fixed angle.
dBeta double
The beta of fixed angle.
dGamma double
The gamma of fixed angle.
Exceptions
InvalidOperationException The set data of orientation operation failed .SetPositionVector(Vector)
Set the position vector.Parameters
vec Vector
The vector.
ToString()
Returns
stringTranslate(Vector)
To translate for position.Parameters
vec Vector
The vector
Translate(double, double, double)
To translate for position.Parameters
dX double
The value of X
dY double
The value of y
dZ double
The value of z
TransposeOrientation()
Transposed rows and columns of the matrix.Exceptions
InvalidOperationException The transpose operation failed .Operators
operator ==(TMatrix, TMatrix)
Compare two transformation matrices are same or notParameters
matLeft TMatrix
The left matrix to compare
matRight TMatrix
The right matrix to compare
Returns
bool true if two matrices are same, otherwise false.Exceptions
InvalidOperationException The equality operation failed .operator !=(TMatrix, TMatrix)
Compare two transformation matrices are same or notParameters
matLeft TMatrix
The left matrix to compare
matRight TMatrix
The right matrix to compare
Returns
bool true if two matrices are not same, otherwise false.Exceptions
InvalidOperationException The inequality operation failed .operator *(TMatrix, TMatrix)
Cross product two orientation matrices.Parameters
matA TMatrix
The left matrix to cross product
matB TMatrix
The right matrix to cross product
Returns
TMatrix The cross product matrix.Exceptions
InvalidOperationException The multiply operation failed .operator *(Vector, TMatrix)
Multiply vector to the matrix.Parameters
vec Vector
The vector to multiply value
mat TMatrix
The matrix to multiply