Expand description
Shared angle constants. Common angle constants.
Constants§
- DEGREE_
90 - Degrees in a quarter turn.
- DEGREE_
180 - Degrees in a half turn.
- DEGREE_
270 - Degrees in three quarters of a turn.
- DEGREE_
360 - Degrees in a full turn.
- DEG_
TO_ RAD - Multiplier for converting
f32degrees to radians. - DEG_
TO_ RAD_ F64 - Multiplier for converting
f64degrees to radians. - RAD_
TO_ DEG - Multiplier for converting
f32radians to degrees. - RAD_
TO_ DEG_ F64 - Multiplier for converting
f64radians to degrees.
Functions§
- convert_
to_ rotation_ segment - Converts an angle in degrees to vanilla’s 16-segment rotation value.
- wrap_
degrees - Wraps an angle in degrees to vanilla’s
[-180, 180)range.