Skip to contents

Compute bearings

Usage

compute_bearing(x, y, angle_convention = c("mathematical", "bearing"))

Arguments

x, y

Numeric coordinate vectors.

angle_convention

Angle convention. "mathematical" means zero is east and angles increase counterclockwise. "bearing" means zero is north and angles increase clockwise.

Value

Numeric vector of bearings in radians. The first value is NA.