editor / quarterTurn
Function: quarterTurn()
quarterTurn(
vector):Vector
Defined in: math/quarter-turn.ts:14
Vector turned by a quarter turn in the positive direction of angles.
Formula: (x, y)⊥ = (−y, x), the rotation matrix with θ = π/2. In the SVG frame (y down), the positive direction is clockwise on screen.
Parameters
vector
vector to turn
Returns
the turned vector, same length
Kind
math
See
REF-MATHWORLD-ROTATION-MATRIX