Class DirectionIndicator

This class translates an angle and direction into text.

Hierarchy

  • DirectionIndicator

Constructors

Methods

  • Returns number

    the angle of the turn, if any

  • Returns string

    the direction (either left/right/straight)

  • Parameters

    • angle: number

      the new angle

    Returns void

  • Parameters

    • direction: string

      the new direction

    Returns void

  • Returns string

    A string representation of this object

  • Used for default options.

    Parameters

    • info: Map<string, number>

      a map with 'angle' and 'direction' keys and their corresponding values

    Returns void

Generated using TypeDoc