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.
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.
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 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.