Class AxisUtils
Provides utility methods for axis and handiness conversions.
Inherited Members
Namespace: TriLibExporter
Assembly: Assembly-CSharp.dll
Syntax
public static class AxisUtils
Methods
ConvertHandiness(ref Vector3, ref Quaternion)
Converts a position and rotation from right-handed to left-handed coordinate systems.
Declaration
public static void ConvertHandiness(ref Vector3 position, ref Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position vector to convert. Updated in place. |
Quaternion | rotation | The rotation quaternion to convert. Updated in place. |
ReconstructZ(byte, byte)
Reconstructs the Z component of a normal vector using the X and Y components.
Declaration
public static byte ReconstructZ(byte a, byte b)
Parameters
Type | Name | Description |
---|---|---|
byte | a | The X component of the normal vector, stored as a byte. |
byte | b | The Y component of the normal vector, stored as a byte. |
Returns
Type | Description |
---|---|
byte | The reconstructed Z component of the normal vector, stored as a byte. |