Class AbsolutePositionAbstract

An absolute position of a DataObject.

Hierarchy (view full)

Implements

Constructors

Properties

orientation: Orientation

Orientation at recorded position

referenceSpaceUID: string

Position reference space UID

timestamp: number = ...

Position recording timestamp

unit: LengthUnit = LengthUnit.METER

Position unit

velocity: Velocity = ...

Velocity at recorded position

Accessors

Methods

  • Get the angle in radians from this position to a destination

    Parameters

    • destination: this

      Destination position

    Returns number

    Bearing in radians from this position to destination

  • Get the distance from this location to a destination

    Parameters

    • destination: this

      Destination location

    • Optional distanceFunction: DistanceFn = EUCLIDEAN

      Distance function to use (default EUCLIDEAN distance)

    Returns number

    Distance between this point and destination