Function kcl_lib::std::utils::delta_angle
source · pub fn delta_angle(from_angle: f64, to_angle: f64) -> f64
Expand description
Gives the ▲-angle between from and to angles (shortest path), use radians.
Sign of the returned angle denotes direction, positive means counterClockwise 🔄
Examples
assert_eq!(
kcl_lib::std::utils::delta_angle(std::f64::consts::PI / 8.0, std::f64::consts::PI / 4.0),
std::f64::consts::PI / 8.0
);