angleRad

fun angleRad(reference: ImmutableVector2 = X): Float

Returns the angle in radians of this vector relative to the reference. Angles are towards the positive y-axis. (typically counter-clockwise)


fun angleRad(referenceX: Float, referenceY: Float): Float

Returns the angle in radians of this vector relative to the (referenceX, referenceY) reference. Angles are towards the positive y-axis. (typically counter-clockwise)