Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AngleUnit

Hierarchy

Index

Constructors

constructor

Properties

Static Readonly DEGREE

DEGREE: AngleUnit = ...

Static Readonly RADIAN

RADIAN: AngleUnit = ...

Static Protected Readonly UNITS

UNITS: Map<string, Unit> = ...

Static Protected Readonly UNIT_BASES

UNIT_BASES: Map<string, string> = ...

Accessors

aliases

  • get aliases(): string[]

baseName

  • get baseName(): string

definitions

name

  • get name(): string
  • set name(name: string): void

prefixType

Protected prefixes

Methods

convert

  • convert<T>(value: T, target: string | Unit): T
  • Convert a value in the current unit to a target unit

    Type parameters

    Parameters

    • value: T

      Value to convert

    • target: string | Unit

      Target unit

    Returns T

    Converted unit

createBaseDefinition

createDefinition

Protected findByName

  • findByName(name: string): Unit

specifier

Static convert

Static findByName

  • findByName(name: string, baseName?: string): Unit

Static registerUnit

  • registerUnit(unit: Unit, override?: boolean): Unit