Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Speed

Represents a speed with an associated value and speed unit.

Hierarchy

  • Speed

Index

Constructors

Methods

Constructors

constructor

  • Initializes a Speed object.

    Parameters

    Returns Speed

Methods

equals

  • equals(other: any): boolean
  • Returns true if this speed is equal to another speed.

    Parameters

    • other: any

    Returns boolean

getUnit

  • Returns the unit of the speed.

    Returns SpeedUnit

getValue

  • Returns the value of the speed in a given speed unit.

    Parameters

    Returns number

Generated using TypeDoc