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 greater than another angle.

Parameters
otherThe angle to compare with
Returns
true if this angle is greater than 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). For example, 1° would be considered greater than 359° in the raw representation, even though they are only 2° apart across the wrap-around boundary.
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.