float z { get; set; }

robot_2Generated
code_blocksInput

Description

The z property represents the Z component of this rotation. It is a part of the quaternion representation of a rotation, which includes the X, Y, Z, and W components. The Z component, along with the other components, defines the axis of rotation in 3D space.

Usage

Use the z property to access or modify the Z component of a Rotation instance. This can be useful when you need to perform operations that involve the individual components of a quaternion.

Example

// 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;