The z
property of the Rotation
struct represents the Z component of the quaternion rotation. This component, along with the X, Y, and W components, defines the rotation in 3D space.
The z
property of the Rotation
struct represents the Z component of the quaternion rotation. This component, along with the X, Y, and W components, defines the rotation in 3D space.
Use the z
property to access or modify the Z component of a Rotation
instance. This is typically used in conjunction with the other components (x, y, w) to fully define a rotation.
// Example of accessing the z component of a Rotation Rotation rotation = new Rotation(); float zComponent = rotation.z; // Example of setting the z component of a Rotation rotation.z = 0.5f;