compareTo

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

Compares this Angle with another. Returns a negative integer if this is the smaller angle, a positive integer if this is the larger, and zero if both angles are equal.

Return

-1 if this angle is smaller, 0 if both are equal and +1 if this angle is larger.

Parameters

other

the angle to compare against.