Description
The Angles.Zero
field is a static, read-only instance of the Angles
struct where all components (pitch, yaw, and roll) are set to zero. This field provides a convenient way to represent a zero rotation without needing to manually create a new Angles
instance with zero values.
Usage
Use Angles.Zero
whenever you need to represent a zero rotation in your code. This is particularly useful for initializing variables or resetting rotations to a default state.
Example
// Example of using Angles.Zero
Angles currentAngles = Angles.Zero;
// Check if currentAngles is zero
if (currentAngles == Angles.Zero)
{
// Perform some action when angles are zero
}