fromAnAngle

final Vector2D fromAnAngle(Float angle, Float length)

Creates a vector from an angle and length

Given any angle in radians and length/magnitude of a vector, it'll create a vector with it's x-component and y-component

Return

Vector2D vector for given angle and with given magnitude

Parameters

angle

Angle in radians

length

length in float