Wrap angles to the interval (-pi, pi]
Examples
theta <- seq(from = -5, to = 5, length.out = 6)
rad_shepherd(theta)
#> [1] 1.283185 -3.000000 -1.000000 1.000000 3.000000 -1.283185
Wrap angles to the interval (-pi, pi]
theta <- seq(from = -5, to = 5, length.out = 6)
rad_shepherd(theta)
#> [1] 1.283185 -3.000000 -1.000000 1.000000 3.000000 -1.283185