Class RightHandToLeftHandConverter
Represents methods to convert from a right-hand to a left-hand coordinate system.
Inherited Members
Namespace: TriLibCore.Utils
Assembly: TriLibCore.dll
Syntax
public static class RightHandToLeftHandConverter
Methods
ConvertMatrix(Matrix4x4)
Converts a Matrix4x4 to the left-hand coordinate system.
Declaration
public static Matrix4x4 ConvertMatrix(Matrix4x4 value)
Parameters
Type | Name | Description |
---|---|---|
Matrix4x4 | value | The Matrix4x4 to be converted. |
Returns
Type | Description |
---|---|
Matrix4x4 | The converted matrix. |
ConvertMatrix2(Matrix4x4)
Converts a Matrix4x4 to the left-hand coordinate system.
Declaration
public static Matrix4x4 ConvertMatrix2(Matrix4x4 value)
Parameters
Type | Name | Description |
---|---|---|
Matrix4x4 | value | The Matrix4x4 to be converted. |
Returns
Type | Description |
---|---|
Matrix4x4 | The converted matrix. |
ConvertRotation(Quaternion)
Converts a Quaternion to the left-hand coordinate system.
Declaration
public static Quaternion ConvertRotation(Quaternion value)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | value | The Quaternion to be converted. |
Returns
Type | Description |
---|---|
Quaternion | The converted Quaternion. |
ConvertRotation(Vector3)
Converts an Angle representation to the left-hand coordinate system.
Declaration
public static Vector3 ConvertRotation(Vector3 value)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | value | The Angle representation to be converted. |
Returns
Type | Description |
---|---|
Vector3 | The converted vector. |
ConvertRotation(Vector4)
Converts a Quaternion to the left-hand coordinate system.
Declaration
public static Vector4 ConvertRotation(Vector4 value)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | value | The Quaternion to be converted. |
Returns
Type | Description |
---|---|
Vector4 | The converted vector. |
ConvertVector(Vector3)
Converts a Vector3 to the left-hand coordinate system.
Declaration
public static Vector3 ConvertVector(Vector3 value)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | value | The Vector3 to be converted. |
Returns
Type | Description |
---|---|
Vector3 | The converted vector. |