Function getCardinalDirection

  • Get the cardinal direction based on an angle with

    • 0°: true north
    • 90°: east
    • 180°: south
    • 270°: west

    Parameters

    • angle: number

    Returns string

Was this helpful?