Function angle_difference
pub fn angle_difference(from: f64, to: f64) -> f64Expand description
Returns the difference between the two angles (in radians), in the range of [-PI, +PI]. When from and to are opposite, returns -PI if from is smaller than to, or PI otherwise.