Rotates a vector by a given number of quarter-circles (i.e. multiples of 90 degrees or Pi/2 radians). A positive number rotates counter-clockwise, a negative number rotates clockwise. Under this operation the magnitude of the vector and the absolute values of the ordinates do not change, only their sign and ordinate index.
-
Parameters:
-
numQuarters - numQuarters the number of quarter-circles to rotate by
-
Returns:
-
the rotated vector.