Learn R Programming

trajr (version 1.0.0)

TrajAngles: Turning angles of a Trajectory

Description

Calculates the step angles (in radians) of each segment, either relative to the previous segment or relative to the specified compass direction.

Usage

TrajAngles(trj, lag = 1, compass.direction = NULL)

Arguments

trj

the trajectory whose whose angles are to be calculated.

lag

Angles between every lag'th segment are calculated.

compass.direction

If not NULL, step angles are calculated relative to this angle (in radians), otherwise they are calculated relative to the previous step angle.

Value

Step angles in radians, normalised so that -pi < angle <= pi.

See Also

TrajStepLengths