perpendicular

fun perpendicular(polarity: YPolarity = YPolarity.CW_NEGATIVE_Y): Vector2

Calculates a vector perpendicular to the current one.

Parameters

polarity

The polarity of the new vector, default is CW_NEGATIVE_Y.

Sources

Link copied to clipboard