turnAngle | R Documentation |
Used in prepData
and simData
.
turnAngle(x, y, z, type = "UTM", angleCov = FALSE)
x |
First point |
y |
Second point |
z |
Third point |
type |
|
angleCov |
logical indicating to not return NA when x=y or y=z. Default: FALSE (i.e. NA is returned if x=y or y=z). |
The angle between vectors (x,y) and (y,z).
If type='LL'
then turning angle is calculated based on initial bearings using bearing
.
## Not run: x <- c(0,0) y <- c(4,6) z <- c(10,7) momentuHMM:::turnAngle(x,y,z) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.