getAngle2d | R Documentation |
Calcul the angles of two set of vectors.
getAngle2d(x0, y0, x1, y1, rad = FALSE)
x0, y0 |
the x and y coordinates of the first set of vector. |
x1, y1 |
the x and y coordinates of the second set of vector. |
rad |
a logical. Should angles be expressed radians? |
# Example: plot0(c(-10, 10), c(-10, 10)) arrows(c(0, 3), c(0, 0), c(3, 0), c(3, -3)) cool <- getAngle2d(c(0, 3), c(0, 0), c(3, 0), c(3, -3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.