Angle

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Size of this angle in degrees.

Link copied to clipboard

Size of this angle in mil NATO.

Link copied to clipboard

Size of this angle in mil Warsaw Pact.

Link copied to clipboard

Size of this angle in minutes.

Link copied to clipboard

Size of this angle in minute of angle (MOA).

Link copied to clipboard

Size of this angle in milliradians.

Link copied to clipboard

Size of this angle in radians. This may be useful for functions, which generally take radians as trigonometric arguments.

Link copied to clipboard

Size of this angle in seconds.

Link copied to clipboard

Size of this angle in Streck.

Link copied to clipboard

Indicates whether this angle is within the normal range of latitude, -90, 90.

Link copied to clipboard

Indicates whether this angle is within the normal range of longitude, -180, 180.

Link copied to clipboard

Return North or South notation depends on sign

Link copied to clipboard

Return West or East notation depends on sign

Link copied to clipboard

Relative latitude (from wiki.openstreetmap.org)

Link copied to clipboard

Relative longitude (from wiki.openstreetmap.org)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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.

Link copied to clipboard
fun distanceTo(angle: Angle): Angle

Computes the shortest distance between this and angle, as an angle.

Link copied to clipboard
operator fun div(angle: Angle): Angle
operator fun div(divisor: Number): Angle

Divides this angle by another angle. This angle remains unchanged. The result is returned as a new angle.

Link copied to clipboard
operator fun minus(angle: Angle): Angle

Obtains the difference of these two angles. This method is not commutative. Neither this angle nor angle is changed, instead the result is returned as a new angle.

Link copied to clipboard
fun minusDegrees(degrees: Double): Angle
Link copied to clipboard
fun minusRadians(radians: Double): Angle
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun plus(angle: Angle): Angle

Obtains the sum of these two angles. This method is commutative, so a.add(b) and b.add(a) are equivalent. Neither this angle nor angle is changed, instead the result is returned as a new angle.

Link copied to clipboard
fun plusDegrees(degrees: Double): Angle
Link copied to clipboard
fun plusRadians(radians: Double): Angle
Link copied to clipboard
operator fun times(angle: Angle): Angle

Multiplies this angle by another angle. This method is commutative, so a.multiply(b) and b.multiply(a) are equivalent. This angle remains unchanged. The result is returned as a new angle.

operator fun times(multiplier: Number): Angle

Multiplies this angle by multiplier. This method is commutative, so a.multiply(b) and b.multiply(a) are equivalent. This angle remains unchanged. The result is returned as a new angle.

Link copied to clipboard
fun toDDString(digits: Int = 6): String

Forms a decimal degrees String representation of this Angle.

Link copied to clipboard
Link copied to clipboard
fun toDMSString(digits: Int = 1): String

Obtains a String representation of this Angle formatted as degrees, minutes and seconds.

Link copied to clipboard
fun toDMString(digits: Int = 3): String

Obtains a String representation of this Angle formatted as degrees and decimal minutes.

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

Returns new angle with opposite sign.