Calculates the angle of a vector with respect to the vector (1,0).
a vector of length 2 or a N x 2 matrix of means in two dimensions
Returns the angle needed to rotate (1,0) counterclockwise to match the input vector. atan(y/x) + 0 if x >= 0 and y >= 0 (Q1) pi if x < 0 and y > 0 (Q2) pi if x < 0 and y <= 0 (Q3) 2pi if x >= 0 and y < 0 (Q4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.