Struct GTAQuat
Represents a quaternion in the GTA coordinate space.
public readonly struct GTAQuat
- Inherited Members
Constructors
GTAQuat(float, float, float, float)
Initializes a new instance of the GTAQuat struct.
public GTAQuat(float x, float y, float z, float w)
Parameters
xfloatThe X component of the quaternion.
yfloatThe Y component of the quaternion.
zfloatThe Z component of the quaternion.
wfloatThe W component of the quaternion.
Fields
W
The W component of this quaternion.
public readonly float W
Field Value
X
The X component of this quaternion.
public readonly float X
Field Value
Y
The Y component of this quaternion.
public readonly float Y
Field Value
Z
The Z component of this quaternion.
public readonly float Z
Field Value
Operators
implicit operator Quaternion(GTAQuat)
Converts a GTAQuat to a Quaternion.
public static implicit operator Quaternion(GTAQuat gtaQuat)
Parameters
gtaQuatGTAQuatThe value to convert
Returns
implicit operator GTAQuat(Quaternion)
Converts a Quaternion to a GTAQuat.
public static implicit operator GTAQuat(Quaternion quat)
Parameters
quatQuaternionThe value to convert.