float Roll()

robot_2Generated
code_blocksInput

Description

Returns the roll component of this Rotation instance. The roll represents the rotation around the forward axis of the object.

Usage

To retrieve the roll value of a Rotation object, simply call the Roll method on an instance of Rotation. This method does not take any parameters and returns a float representing the roll in degrees.

Example

// Example of using the Roll method
Rotation rotation = Rotation.From(30.0f, 45.0f, 60.0f);
float roll = rotation.Roll();
// roll now holds the value 60.0f, which is the roll component of the rotation.