|Copyright||(c) 2011 diagrams-lib team (see LICENSE)|
|License||BSD-style (see LICENSE)|
Special 2D vectors
Converting between vectors and angles
Compute the direction of a vector, measured counterclockwise from the positive x-axis as a fraction of a full turn. The zero vector is arbitrarily assigned the direction 0.
compute the positive angle between the two vectors in their common plane
2D vector utilities
perp v is perpendicular to and has the same magnitude as
perp v == rotateBy (1/4) v.