Learn R Programming

moveHMM (version 1.10)

turnAngle: Turning angle

Description

Used in prepData.

Usage

turnAngle(x, y, z, LLangle)

Value

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

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.

Examples

Run this code
if (FALSE) {
x <- c(0,0)
y <- c(4,6)
z <- c(10,7)
turnAngle(x,y,z,LLangle=FALSE)
}

Run the code above in your browser using DataLab