Angle

class Angle : Comparable<Angle>

Combined angle measure in degrees and radians.

Types

Companion
Link copied to clipboard
common
object Companion

Functions

coerceIn
Link copied to clipboard
common
fun coerceIn(minimumAngle: Angle, maximumAngle: Angle): Angle
Ensures that this value lies in the specified range minimumAngle..
compareTo
Link copied to clipboard
common
open operator override fun compareTo(other: Angle): Int
Compares this angle to the specified other angle.
div
Link copied to clipboard
common
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.
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
minus
Link copied to clipboard
common
operator fun minus(other: Angle): Angle
Subtracts the other angle from this angle.
plus
Link copied to clipboard
common
operator fun plus(other: Angle): Angle
Adds the other angle to this angle.
rangeTo
Link copied to clipboard
common
operator fun rangeTo(other: Angle): AngleRange
Creates a range from this angle to the specified other angle.
rem
Link copied to clipboard
common
operator fun rem(other: Angle): Angle
Calculates remainder of dividing this angle by the other angle.
times
Link copied to clipboard
common
operator fun times(number: Float): Angle
Multiplies this angle by the specified number.
toString
Link copied to clipboard
common
open override fun toString(): String
unaryMinus
Link copied to clipboard
common
operator fun unaryMinus(): Angle
Returns the negative of this angle.
unaryPlus
Link copied to clipboard
common
operator fun unaryPlus(): Angle
Returns this angle.

Properties

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