C# Class Revit.SDK.Samples.NewPathReinforcement.CS.Matrix4

Matrix used to transform between ucs coordinate and world coordinate.
显示文件 Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
Identity ( ) : void

Identity matrix

Inverse ( ) : Matrix4

get inverse matrix

Matrix4 ( ) : System

default ctor

Matrix4 ( Vector4 origin ) : System

ctor,translation matrix.

Matrix4 ( Vector4 xAxis, Vector4 yAxis, Vector4 zAxis ) : System

ctor,rotation matrix,origin at (0,0,0)

Matrix4 ( Vector4 xAxis, Vector4 yAxis, Vector4 zAxis, Vector4 origin ) : System

rotation and translation matrix constructor

Matrix4 ( float scale ) : System

scale matrix constructor

Multiply ( Matrix4 left, Matrix4 right ) : Matrix4

multiply matrix left and right

RotationInverse ( ) : Matrix4

if m_matrix is a rotation matrix,this method can get the rotation inverse matrix.

ScaleInverse ( ) : Matrix4

if m_matrix is a scale matrix,this method can get the scale inverse matrix.

Transform ( Vector4 point ) : Vector4

transform point use this matrix

TranslationInverse ( ) : Matrix4

if this m_matrix is a translation matrix, this method can get the translation inverse matrix.

this ( int row, int column ) : float

indexer of matrix

Method Details

Identity() public method

Identity matrix
public Identity ( ) : void
return void

Inverse() public method

get inverse matrix
public Inverse ( ) : Matrix4
return Matrix4

Matrix4() public method

default ctor
public Matrix4 ( ) : System
return System

Matrix4() public method

ctor,translation matrix.
public Matrix4 ( Vector4 origin ) : System
origin Vector4 origin of ucs in world coordinate
return System

Matrix4() public method

ctor,rotation matrix,origin at (0,0,0)
public Matrix4 ( Vector4 xAxis, Vector4 yAxis, Vector4 zAxis ) : System
xAxis Vector4 identity of x axis
yAxis Vector4 identity of y axis
zAxis Vector4 identity of z axis
return System

Matrix4() public method

rotation and translation matrix constructor
public Matrix4 ( Vector4 xAxis, Vector4 yAxis, Vector4 zAxis, Vector4 origin ) : System
xAxis Vector4 x Axis
yAxis Vector4 y Axis
zAxis Vector4 z Axis
origin Vector4 origin
return System

Matrix4() public method

scale matrix constructor
public Matrix4 ( float scale ) : System
scale float scale factor
return System

Multiply() public static method

multiply matrix left and right
public static Multiply ( Matrix4 left, Matrix4 right ) : Matrix4
left Matrix4 left matrix
right Matrix4 right matrix
return Matrix4

RotationInverse() public method

if m_matrix is a rotation matrix,this method can get the rotation inverse matrix.
public RotationInverse ( ) : Matrix4
return Matrix4

ScaleInverse() public method

if m_matrix is a scale matrix,this method can get the scale inverse matrix.
public ScaleInverse ( ) : Matrix4
return Matrix4

Transform() public method

transform point use this matrix
public Transform ( Vector4 point ) : Vector4
point Vector4 point needed to be transformed
return Vector4

TranslationInverse() public method

if this m_matrix is a translation matrix, this method can get the translation inverse matrix.
public TranslationInverse ( ) : Matrix4
return Matrix4

this() public method

indexer of matrix
public this ( int row, int column ) : float
row int row number
column int column number
return float