turnAngle: Turning angle

View source: R/turnAngle.R

turnAngleR Documentation

Turning angle

Description

Used in prepData.

Usage

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

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

## End(Not run)


moveHMM documentation built on May 31, 2023, 6:13 p.m.