Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Distance

Represents a distance with an associated value and distance unit.

Hierarchy

  • Distance

Index

Constructors

constructor

Methods

getUnit

  • Returns the unit of the distance.

    Returns DistanceUnit

getValue

  • Returns the value of the distance, in a given distance unit.

    Parameters

    Returns number

Static fromRadians

  • Converts the distance from radians into the distance unit supplied.

    Parameters

    Returns Distance

Static toRadians

  • Converts the distance from the unit supplied into radians.

    Parameters

    Returns number

Generated using TypeDoc