vec_angle: Angle / radian between two vectors.

Description Usage Arguments Value

View source: R/utils.R

Description

Function comes in two flavors. Either it calculates the smallest angle [0, 180) or the anti-clockwise angle with respect to the second vector [0, 360).

Usage

1
vec_angle(a, b, rad = TRUE, mode = 1)

Arguments

a,b

Vector

rad

Angular measure is radian? (default TRUE).

mode

1= smallest angle in [0, 180); 2=anti-clockwise angle with respect vector b in [0, 360).

Value

Angle


markheckmann/circplot documentation built on May 21, 2019, 12:06 p.m.