The Roll
method of the Rotation
struct returns the roll component of the rotation. The roll is the rotation around the forward axis, typically represented in degrees.
The Roll
method of the Rotation
struct returns the roll component of the rotation. The roll is the rotation around the forward axis, typically represented in degrees.
To retrieve the roll component of a Rotation
instance, simply call the Roll
method on that instance. This method does not take any parameters and returns a float
representing the roll angle in degrees.
// 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.