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

Matrix used to transform between ucs coordinate and world coordinate.
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Identity matrix
public Identity ( ) : void
Résultat void

Inverse() public méthode

get inverse matrix
public Inverse ( ) : Matrix4
Résultat Matrix4

Matrix4() public méthode

default constructor
public Matrix4 ( ) : System
Résultat System

Matrix4() public méthode

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

Matrix4() public méthode

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
Résultat System

Matrix4() public méthode

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
Résultat System

Matrix4() public méthode

scale matrix constructor
public Matrix4 ( double scale ) : System
scale double scale factor
Résultat System

Multiply() public static méthode

multiply matrix left and right
public static Multiply ( Matrix4 left, Matrix4 right ) : Matrix4
left Matrix4 left matrix
right Matrix4 right matrix
Résultat Matrix4

RotateX() public static méthode

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

RotateY() public static méthode

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

RotateZ() public static méthode

get a matrix used to rotate object specific angle on Z direction
public static RotateZ ( double angle ) : Matrix4
angle double rotate angle
Résultat Matrix4

RotationInverse() public méthode

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

ScaleInverse() public méthode

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

Transform() public méthode

transform point using this matrix
public Transform ( Vector4 point ) : Vector4
point Vector4 point to be transformed
Résultat Vector4

TranslationInverse() public méthode

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

this() public méthode

indexer of matrix
public this ( int row, int column ) : double
row int row number
column int column number
Résultat double