angle_from_positions: Calculates angle from two 2d positions

View source: R/navr-angle-calculations.R

angle_from_positionsR Documentation

Calculates angle from two 2d positions

Description

Calculates angle from two 2d positions

Usage

angle_from_positions(pos_from, pos_to, zero_vec = c(0, 1))

Arguments

pos_from

numeric(2) vector of original position

pos_to

numeric(2) vector of position towards the target

zero_vec

defines which axis should correspond to 0 degrees. defaults to c(0,1) (Y axis)


hejtmy/navr documentation built on March 3, 2023, 5:24 p.m.