turnAngle: Turning angle

Description Usage Arguments Value Examples

View source: R/turnAngle.R

Description

Used in prepData.

Usage

1
turnAngle(x, y, z, LLangle)

Arguments

x

First point

y

Second point

z

Third point

LLangle

Logical. If TRUE, the turning angle is calculated with geosphere::bearing, else calculated with atan2.

Value

The angle between vectors (x,y) and (y,z)

Examples

1
2
3
4
5
6
7
## Not run: 
x <- c(0,0)
y <- c(4,6)
z <- c(10,7)
turnAngle(x,y,z,LLangle=FALSE)

## End(Not run)

TheoMichelot/moveHMM documentation built on Sept. 28, 2018, 11:06 a.m.