Interface IOMatrix
Last update: 16.07.2025
Interface IOMatrix
Namespace: VM
Assembly: VM.dll
This interface is to represent the orientation matrix.
public interface IOMatrix
Properties
Array
Gets or sets the data of OMatrix.
double[] Array { get; set; }
Property Value
double[]
XVector
Gets or sets the XVector.
Vector XVector { get; set; }
Property Value
YVector
Gets or sets the YVector.
Vector YVector { get; set; }
Property Value
ZVector
Gets or sets the ZVector.
Vector ZVector { get; set; }
Property Value
Methods
GetDirectionVector(Coordinate)
Get the direction vector for axis.
Vector GetDirectionVector(Coordinate axis)
Parameters
axis Coordinate
The type of axis.
Returns
The direction vector.
GetDirectionVector(int)
Get the direction vector for axis.
Vector GetDirectionVector(int axis)
Parameters
axis int
The type of axis.
Returns
The direction vector.
Initialize()
Initializes a instance of OMatrix.
void Initialize()
Normalize()
Nomalize a instance of OMatrix.
void Normalize()
RotateAxisDeg(Coordinate, double)
To rotate counterclockwise for coordinate.
void RotateAxisDeg(Coordinate c, double dAngle)
Parameters
The rotation coordinate.
dAngle double
The degree.
RotateAxisDeg(int, double)
To rotate counterclockwise for coordinate.
void RotateAxisDeg(int nCoord, double dAngle)
Parameters
nCoord int
The rotation coordinate.
dAngle double
The degree.
RotateAxisDeg(Vector, double)
To rotate counterclockwise for axis.
void RotateAxisDeg(Vector axis, double dAngle)
Parameters
axis Vector
The rotation axis.
dAngle double
The degree.
RotateAxisRad(Coordinate, double)
To rotate counterclockwise for coordinate.
void RotateAxisRad(Coordinate c, double dAngle)
Parameters
The rotation coordinate.
dAngle double
The radian.
RotateAxisRad(int, double)
To rotate counterclockwise for coordinate.
void RotateAxisRad(int nCoord, double dAngle)
Parameters
nCoord int
The rotation coordinate.
dAngle double
The radian.
RotateAxisRad(Vector, double)
To rotate counterclockwise for axis.
void RotateAxisRad(Vector axis, double dAngle)
Parameters
axis Vector
The rotation axis.
dAngle double
The radian.
RotateXDeg(double)
To rotate counterclockwise for x-axis.
void RotateXDeg(double dAngle)
Parameters
dAngle double
The degree.
RotateXRad(double)
To rotate counterclockwise for x-axis.
void RotateXRad(double dAngle)
Parameters
dAngle double
The radian.
RotateYDeg(double)
To rotate counterclockwise for y-axis.
void RotateYDeg(double dAngle)
Parameters
dAngle double
The degree.
RotateYRad(double)
To rotate counterclockwise for y-axis.
void RotateYRad(double dAngle)
Parameters
dAngle double
The radian.
RotateZDeg(double)
To rotate counterclockwise for z-axis.
void RotateZDeg(double dAngle)
Parameters
dAngle double
The degree.
RotateZRad(double)
To rotate counterclockwise for z-axis.
void RotateZRad(double dAngle)
Parameters
dAngle double
The radian.
SetOrientation(Plane, Vector, Vector)
Set data of orientation.
void SetOrientation(Plane type, Vector vecMaster, Vector vecSlave)
Parameters
type Plane
The type of plane.
vecMaster Vector
The vector for master.
vecSlave Vector
The vector for slave.
SetOrientation(OMatrix)
Set data of orientation.
void SetOrientation(OMatrix mat)
Parameters
mat OMatrix
The matrix of orientation.
SetOrientation(double[])
Set data of orientation.
void SetOrientation(double[] arr)
Parameters
arr double[]
The data of orientation.
SetOrientationEADeg(RotationAxes, double, double, double)
Set data of orientation for euler angle. Unit is degree.
void SetOrientationEADeg(RotationAxes ea, double dAlpha, double dBeta, double dGamma)
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.
SetOrientationEARad(RotationAxes, double, double, double)
Set data of orientation for euler angle. Unit is radian.
void SetOrientationEARad(RotationAxes ea, double dAlpha, double dBeta, double dGamma)
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.
SetOrientationFixedAngleDeg(RotationAxes, double, double, double)
Set data of orientation for fixed angle. Unit is degree.
void SetOrientationFixedAngleDeg(RotationAxes ea, double dAlpha, double dBeta, double dGamma)
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.
SetOrientationFixedAngleRad(RotationAxes, double, double, double)
Set data of orientation for fixed angle. Unit is radian.
void SetOrientationFixedAngleRad(RotationAxes ea, double dAlpha, double dBeta, double dGamma)
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.
TransposeOrientation()
Transposed rows and columns of the matrix.
void TransposeOrientation()