SaturnRingLibrary 0.9.1
SGL wrapper
 
Loading...
Searching...
No Matches

◆ Angle() [2/3]

SRL::Math::Types::Angle::Angle ( const Fxp & turns)
inlineconstexpr

Constructs angle from fixed-point turns.

Parameters
turnsAngle in turns as fixed-point value (where 1.0 = 360°)
Note
This constructor allows conversion from a fixed-point representation of turns to an Angle object. Values are interpreted as turns, where:
  • 0.0 = 0° = 0 turns
  • 0.25 = 90° = 1/4 turn
  • 0.5 = 180° = 1/2 turn
  • 0.75 = 270° = 3/4 turn
  • 1.0 = 360° = 1 turn = 0 turns (full circle)

Values outside the range [0,1] are automatically wrapped around.