Description Usage Arguments Value Examples
Computes the heading (radians counter clockwise from north or vertical)
1 | bearing.xy(x1, x2, y1, y2)
|
x1 |
Numeric; point A x value |
x2 |
numeric; point B x value |
y1 |
numeric; point A y value |
y2 |
numeric; point B y value |
A single value in radians
a single value in radians
1 2 3 4 5 | #example
A <- c(0,0)
B <- c(-5,5)
thet <- bearing.xy(A[1],B[1],A[2],B[2])
deg(thet)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.