angleDeg

inline fun ImmutableVector2.angleDeg(reference: ImmutableVector2 = ImmutableVector2.X): Float

Returns the angle in degrees of this vector relative to the reference. Angles are towards the positive y-axis (typically counter-clockwise.) between -180 and +180


inline fun ImmutableVector2.angleDeg(referenceX: Float, referenceY: Float): Float

Returns the angle in degrees of this vector relative to the reference vector described by referenceX and referenceY.

Angles are towards the positive y-axis (typically counter-clockwise.) between -180 and +180