Function Vdir

  • Helper function to create a Vector2 from an angle

    Parameters

    • angle: number

      angle in radians

    Returns Vector2

    Vector2 with length 1