AngularUnit

Defines an angular unit of measurement. The angular unit class is derived from the unit class.

Since

200.1.0

Constructors

Link copied to clipboard
constructor(unitId: AngularUnitId)

Creates a unit given its known id.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The AngularUnitId of the given angular unit. If an error occurs then AngularUnitId.Other is returned.

Inherited properties

Link copied to clipboard

The abbreviation of the unit. The abbreviation for a specific unit.

Link copied to clipboard

The display name of the unit. The display name for a specific unit.

Link copied to clipboard

The name of the unit. The name for a specific unit.

Link copied to clipboard

The display name of the unit. The display name for a specific unit.

Link copied to clipboard
val wkid: Int

The well-known ID for the unit, or 0 for a custom unit.

Functions

Link copied to clipboard
fun convertFrom(fromUnit: AngularUnit, angle: Double): Double

Converts a value in another UOM into this UOM.

Link copied to clipboard
fun convertTo(toUnit: AngularUnit, angle: Double): Double

Converts a value in this UOM into another UOM.

Link copied to clipboard
fun fromRadians(radians: Double): Double

Converts a radian value to this UOM.

Link copied to clipboard
fun toRadians(angle: Double): Double

Converts a value in this UOM to radians.

Inherited functions

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