perpendicular

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

Calculates a vector perpendicular to the current one.

Parameters

polarity

The polarity of the new vector, default is CW_NEGATIVE_Y.