polar

inline fun polar(x: Float, y: Float, angle: Angle, length: Float = 1.0f, up: Vector2D = UP): Vector2D

Constructs a point from polar coordinates determined by an angle and a length. Angle 0 is pointing to the right, and the direction is counter-clock-wise for up=UP and clock-wise for up=UP_SCREEN


inline fun polar(x: Double, y: Double, angle: Angle, length: Double = 1.0, up: Vector2D = UP): Vector2D
inline fun polar(base: Vector2D, angle: Angle, length: Double = 1.0, up: Vector2D = UP): Vector2D
inline fun polar(angle: Angle, length: Double = 1.0, up: Vector2D = UP): Vector2D