Description Usage Arguments Details Value Examples
This function returns the angle between two vectors u and v. If u and v are orthogonal then the angle will be 90 degrees. This is a helper function for dMisc::plotCovEllipse(). It can be called directly if needed.
1 | getAngle(u, v)
|
u |
a vector of numeric values. (Must be at least length = 2) |
v |
a vector of numeric values. (Must be at least length = 2) |
Original code from StackOverflow, but I don't have attribution.
the angle between the two vectors u and v.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.