Angle

Combined angle measure in degrees and radians.

Types

Link copied to clipboard
object Companion

Functions

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

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

Link copied to clipboard
open operator override fun compareTo(other: Angle<T>): 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(number: T): Angle<T>

Divides this angle by the specified number.

operator fun div(other: Angle<T>): T

Divides this angle by the other angle.

Link copied to clipboard
operator fun minus(other: Angle<T>): Angle<T>

Subtracts the other angle from this angle.

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

Adds the other angle to this angle.

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

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

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

Calculates remainder of dividing this angle by the other angle.

Link copied to clipboard
operator fun times(number: T): Angle<T>

Multiplies this angle by the specified number.

Link copied to clipboard

Returns Angle<Double> with the same value as this angle.

Link copied to clipboard

Returns Angle<Float> with the same value as this angle.

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

Returns string representation of this angle.

Link copied to clipboard
operator fun unaryMinus(): Angle<T>

Returns the negative of this angle.

Link copied to clipboard
operator fun unaryPlus(): Angle<T>

Returns this angle.

Properties

Link copied to clipboard
val deg: T

Angle measure in degrees.

Link copied to clipboard
val rad: T

Angle measure in radians.