Property | Type | Description | |
---|---|---|---|
IdentityMatrix | Matrix4x4 | ||
IdentityQuaternion | Quaternion |
Method | Description | |
---|---|---|
DecomposeMatrix ( Matrix4x4 matrix, Vector3 &localPosition, Quaternion &localRotation, Vector3 &localScale ) : void |
Extract position, rotation and scale from TRS matrix.
|
|
ExtractRotationFromMatrix ( Matrix4x4 matrix ) : Quaternion | ||
ExtractScaleFromMatrix ( Matrix4x4 matrix ) : Vector3 |
Extract scale from transform matrix.
|
|
ExtractTranslationFromMatrix ( Matrix4x4 matrix ) : Vector3 |
Extract translation from transform matrix.
|
|
MatrixToQuaternion ( Matrix4x4 m ) : Quaternion | ||
MatrixToRotation ( Matrix4x4 m ) : Quaternion | ||
QuatFromMatrix ( Matrix4x4 m ) : Quaternion | ||
QuaternionFromMatrix ( Matrix4x4 m ) : Quaternion |
Extract rotation quaternion from transform matrix.
|
|
SetTransformFromMatrix ( Transform transform, Matrix4x4 &matrix ) : void |
Set transform component from TRS matrix.
|
|
TranslationMatrix ( Vector3 offset ) : Matrix4x4 |
Get translation matrix.
|
|
determinant ( Matrix4x4 m ) : float |
public static DecomposeMatrix ( Matrix4x4 matrix, Vector3 &localPosition, Quaternion &localRotation, Vector3 &localScale ) : void | ||
matrix | Matrix4x4 | Transform matrix. This parameter is passed by reference /// to improve performance; no changes will be made to it. |
localPosition | Vector3 | Output position. |
localRotation | Quaternion | Output rotation. |
localScale | Vector3 | Output scale. |
return | void |
public static ExtractRotationFromMatrix ( Matrix4x4 matrix ) : Quaternion | ||
matrix | Matrix4x4 | |
return | Quaternion |
public static ExtractScaleFromMatrix ( Matrix4x4 matrix ) : Vector3 | ||
matrix | Matrix4x4 | Transform matrix. This parameter is passed by reference /// to improve performance; no changes will be made to it. |
return | Vector3 |
public static ExtractTranslationFromMatrix ( Matrix4x4 matrix ) : Vector3 | ||
matrix | Matrix4x4 | Transform matrix. This parameter is passed by reference /// to improve performance; no changes will be made to it. |
return | Vector3 |
public static MatrixToQuaternion ( Matrix4x4 m ) : Quaternion | ||
m | Matrix4x4 | |
return | Quaternion |
public static MatrixToRotation ( Matrix4x4 m ) : Quaternion | ||
m | Matrix4x4 | |
return | Quaternion |
public static QuatFromMatrix ( Matrix4x4 m ) : Quaternion | ||
m | Matrix4x4 | |
return | Quaternion |
public static QuaternionFromMatrix ( Matrix4x4 m ) : Quaternion | ||
m | Matrix4x4 | |
return | Quaternion |
public static SetTransformFromMatrix ( Transform transform, Matrix4x4 &matrix ) : void | ||
transform | Transform | Transform component. |
matrix | Matrix4x4 | Transform matrix. This parameter is passed by reference /// to improve performance; no changes will be made to it. |
return | void |
public static TranslationMatrix ( Vector3 offset ) : Matrix4x4 | ||
offset | Vector3 | Translation offset. |
return | Matrix4x4 |
public static determinant ( Matrix4x4 m ) : float | ||
m | Matrix4x4 | |
return | float |