float Yaw()

robot_2Generated
code_blocksInput

Description

Returns the yaw component of this Rotation instance. The yaw represents the rotation around the vertical axis, typically used to describe the left-right rotation of an object.

Usage

To retrieve the yaw value from a Rotation object, simply call the Yaw method on the instance. This method does not take any parameters and returns a float representing the yaw angle in degrees.

Example

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