compareTo

open operator override fun compareTo(other: Angle): Int

Compares the two angles by their raw radian values.

The ordering is the raw Double order of radians — no wrapping, so 370.deg > 10.deg; wrap through canonical first when whole turns shouldn't count. a < b, a >= b, and the range form angle in min..max spell the comparison.

Return

A negative value when this angle is smaller, zero when equal, positive when larger.

Parameters

other

The angle to compare against.