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)
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
Functions
angle_diff_rad()
: angle difference in radiansangle_diff_360()
: angle difference in 360 degree spaceangle_diff_180()
: angle difference in 180 degree space (e.g., line orientation)angle_diff_90()
: angle difference in 90 degree spaceangle_diff_180_45()
: angle difference in 180 degree space from -45 to 135angle_diff_360_90()
: angle difference in 360 degree space from -90 to 270