angle_diff_rad {circhelp}R Documentation

Differences between angles in different circular spaces

Description

Differences between angles in different circular spaces

Usage

angle_diff_rad(a, b)

angle_diff_360(a, b)

angle_diff_180(a, b)

angle_diff_90(a, b)

angle_diff_180_45(a, b)

angle_diff_360_90(a, b)

Arguments

a

first angle

b

second angle

Details

By default, all functions return values in ± half-range space (e.g., -pi to pi for 2pi radian space used by angle_diff_rad()) but angle_diff_180_45() and angle_diff_360_90() return values in [-1/4 range, 3/4 range] space

Value

difference between a and b

Functions

Examples

angle_diff_180(5, 175)
angle_diff_360(5, 175)
angle_diff_90(5, 175)
angle_diff_rad(5, 175)

angle_diff_360(300, 0)
angle_diff_360_90(300, 0)

[Package circhelp version 1.1 Index]