Method | Description | |
---|---|---|
GetAngles ( ) : Angle |
Returns the absolute rotation of the matrix.
|
|
GetField ( byte row, byte column ) : double |
Returns a specific field in the matrix.
|
|
GetForward ( ) : Vector |
Gets the forward direction of the matrix.
|
|
GetInverse ( ) : |
Returns an inverted matrix without modifying the original matrix.
|
|
GetInverseTR ( ) : |
Returns an inverted matrix without modifying the original matrix. This function will not fail, but only works correctly on matrices that contain only translation and/or rotation.
|
|
GetRight ( ) : Vector |
Gets the right direction of the matrix.
|
|
GetScale ( ) : Vector |
Returns the absolute scale of the matrix.
|
|
GetTranslation ( ) : Vector |
Returns the absolute translation of the matrix.
|
|
GetUp ( ) : Vector |
Gets the up direction of the matrix.
|
|
Identity ( ) : void |
Initializes the matrix as Identity matrix.
|
|
Invert ( ) : bool |
Inverts the matrix.
|
|
InvertTR ( ) : void |
Inverts the matrix. This function will not fail, but only works correctly on matrices that contain only translation and/or rotation.
|
|
IsIdentity ( ) : bool |
Returns whether the matrix is equal to Identity matrix or not.
|
|
IsRotationMatrix ( ) : bool |
Returns whether the matrix is a rotation matrix or not.
|
|
Rotate ( Angle rotation ) : void |
Rotates the matrix by the given angle.
|
|
Scale ( Vector scale ) : void |
Scales the matrix by the given vector.
|
|
ScaleTranslation ( double scale ) : void |
Scales the absolute translation with the given value.
|
|
Set ( |
Copies values from the given matrix object.
|
|
SetAngles ( Angle angle ) : void |
Sets the absolute rotation of the matrix.
|
|
SetField ( byte row, byte column, double value ) : void |
Sets a specific field in the matrix.
|
|
SetForward ( Vector forward ) : void |
Sets the forward direction of the matrix.
|
|
SetRight ( Vector forward ) : void |
Sets the right direction of the matrix.
|
|
SetScale ( Vector scale ) : void |
Modifies the scale of the matrix while preserving the rotation and translation.
|
|
SetTranslation ( Vector translation ) : void |
Sets the absolute translation of the matrix.
|
|
SetUp ( Vector forward ) : void |
Sets the up direction of the matrix.
|
|
ToTable ( ) : LuaTable |
Converts the matrix to a 4x4 table. See Global.Matrix function.
|
|
Translate ( Vector translation ) : void |
Translates the matrix by the given vector aka. adds the vector to the translation.
|
|
VMatrix ( LuaTable data ) | ||
VMatrix ( int index ) |
public GetField ( byte row, byte column ) : double | ||
row | byte | Row of the field whose value is to be retrieved, from 1 to 4. |
column | byte | Column of the field whose value is to be retrieved, from 1 to 4. |
return | double |
public Rotate ( Angle rotation ) : void | ||
rotation | Angle | Rotation angle. |
return | void |
public Scale ( Vector scale ) : void | ||
scale | Vector | Vector to scale with matrix with. |
return | void |
public ScaleTranslation ( double scale ) : void | ||
scale | double | Value to scale the translation with. |
return | void |
public Set ( |
||
sourceMatrix | The matrix to copy values from. | |
return | void |
public SetAngles ( Angle angle ) : void | ||
angle | Angle | New angles. |
return | void |
public SetField ( byte row, byte column, double value ) : void | ||
row | byte | Row of the field to be set, from 1 to 4. |
column | byte | Column of the field to be set, from 1 to 4. |
value | double | The value to set in that field. |
return | void |
public SetForward ( Vector forward ) : void | ||
forward | Vector | The forward direction of the matrix. |
return | void |
public SetRight ( Vector forward ) : void | ||
forward | Vector | The right direction of the matrix. |
return | void |
public SetScale ( Vector scale ) : void | ||
scale | Vector | The scale to set. |
return | void |
public SetTranslation ( Vector translation ) : void | ||
translation | Vector | New translation. |
return | void |
public SetUp ( Vector forward ) : void | ||
forward | Vector | The up direction of the matrix. |
return | void |
public Translate ( Vector translation ) : void | ||
translation | Vector | Vector to translate the matrix by. |
return | void |