Vec2.FromAngle

static Vec2 FromAngle(float degrees)

Creates a vector pointing in the direction of the angle, with a length of 1. Angles are counter-clockwise, and start from (1,0), so an angle of 90 will be (0,1).

   
float degrees Counter-clockwise angle from (1,0), in degrees.
RETURNS: Vec2 A unit vector (length of 1), pointing towards degrees.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!