Angle

class Angle : Comparable<Angle>

Combined angle measure in degrees and radians.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun coerceIn(minimumAngle: Angle, maximumAngle: Angle): Angle

Ensures that this value lies in the specified range minimumAngle..maximumAngle.

Link copied to clipboard
open operator override fun compareTo(other: Angle): Int

Compares this angle to the specified other angle. Returns zero if this angle is equal to the specified other angle, a negative number if it's less than other, or a positive number if it's greater than other.

Link copied to clipboard
operator fun div(other: Angle): Float

Divides this angle by the other angle.

operator fun div(number: Float): Angle

Divides this angle by the specified number.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
operator fun minus(other: Angle): Angle

Subtracts the other angle from this angle.

Link copied to clipboard
operator fun plus(other: Angle): Angle

Adds the other angle to this angle.

Link copied to clipboard
operator fun rangeTo(other: Angle): AngleRange

Creates a range from this angle to the specified other angle.

Link copied to clipboard
operator fun rem(other: Angle): Angle

Calculates remainder of dividing this angle by the other angle.

Link copied to clipboard
operator fun times(number: Float): Angle

Multiplies this angle by the specified number.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
operator fun unaryMinus(): Angle

Returns the negative of this angle.

Link copied to clipboard
operator fun unaryPlus(): Angle

Returns this angle.

Properties

Link copied to clipboard
val deg: Float
Link copied to clipboard
val rad: Float