vector_angle | R Documentation |
Use the Law of Cosines to calculate the 3d angle between two vectors.
vector_angle(A, B)
A |
numeric vector |
B |
numeric vector |
angle between A and B
vector_angle(c(0, 0, 1), c(0, 1, 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.