C# Class Revit.SDK.Samples.SlabShapeEditing.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 constructor

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 ( double scale ) : System

scale matrix constructor

Multiply ( Matrix4 left, Matrix4 right ) : Matrix4

multiply matrix left and right

RotateX ( double angle ) : Matrix4

get a matrix used to rotate object specific angle on X direction

RotateY ( double angle ) : Matrix4

get a matrix used to rotate object specific angle on Y direction

RotateZ ( double angle ) : Matrix4

get a matrix used to rotate object specific angle on Z direction

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 using 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 ) : double

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 constructor
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 ( double scale ) : System
scale double 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

RotateX() public static method

get a matrix used to rotate object specific angle on X direction
public static RotateX ( double angle ) : Matrix4
angle double rotate angle
return Matrix4

RotateY() public static method

get a matrix used to rotate object specific angle on Y direction
public static RotateY ( double angle ) : Matrix4
angle double rotate angle
return Matrix4

RotateZ() public static method

get a matrix used to rotate object specific angle on Z direction
public static RotateZ ( double angle ) : Matrix4
angle double rotate angle
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 using this matrix
public Transform ( Vector4 point ) : Vector4
point Vector4 point 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 ) : double
row int row number
column int column number
return double