RotationUnit

open class RotationUnit(val degreesPerUnit: Double, val symbol: String) : UnitOfMeasure, Comparable<RotationUnit> (source)

Represents a unit of Rotation measurement.

See also

Constructors

Link copied to clipboard
constructor(degreesPerUnit: Double, symbol: String)

Properties

Link copied to clipboard

Conversion factor from this unit to degrees.

Link copied to clipboard
open override val symbol: String

The symbol used to represent this unit.

Functions

Link copied to clipboard

Converts this angular unit to a LengthUnit on the surface of a sphere, using the given World's average radius.

Link copied to clipboard
operator override fun compareTo(other: RotationUnit): Int
Link copied to clipboard
open fun format(value: Double, decimalPlaces: Int = Int.MAX_VALUE): String

Formats a value with this unit's symbol.