fromDegrees static method

Vector2 fromDegrees(
  1. double d
)

Creates a heading Vector2 with the given angle in degrees.

Implementation

static Vector2 fromDegrees(double d) => fromRadians(d * degrees2Radians);