vec2FromAngle
vec2FromAngle(
angle):Vec2
Defined in: math-linear/src/vec2.ts:162
Creates a 2D vector from an angle in radians. The resulting vector will have a length of 1 and point in the direction of the given angle.
Parameters
Section titled “Parameters”number
The angle in radians from the positive x-axis.