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

◆ operator<=()

bool SRL::Math::Types::Angle::operator<= ( const Angle & other) const
inlineconstexpr

Compares if this angle is less than or equal to another angle.

Parameters
otherThe angle to compare with
Returns
true if this angle is less than or equal to the other angle, false otherwise
Warning
Due to the wrap-around nature of angles, this comparison may lead to unexpected results if angles are near the wrap-around point (0/360 degrees). Always consider the context of your comparison and whether the wrap-around behavior might affect your logic.
Note
This is most useful when comparing angles within the same quadrant or when the angles are known to be within 180 degrees of each other.