powered by
Computes the heading (radians counter clockwise from north or vertical)
bearing.xy(x1, x2, y1, y2)
Numeric; point A x value
numeric; point B x value
numeric; point A y value
numeric; point B y value
A single value in radians
a single value in radians
# NOT RUN { #example A <- c(0,0) B <- c(-5,5) thet <- bearing.xy(A[1],B[1],A[2],B[2]) deg(thet) # }
Run the code above in your browser using DataLab