PerpCW#

template<typename T>
XVector2<T> PerpCW(const XVector2<T> &v)#

Returns the clockwise perpendicular vector.

For a vector (x, y), returns (y, -x).

Template Parameters:

T – The component type of the vector.

Parameters:

v[in] The input vector.

Returns:

A new XVector2 rotated 90 degrees clockwise.