[−][src]Function quicksilver::geom::lerp_angle
pub fn lerp_angle(current: f32, target: f32, fraction: f32) -> f32
Linearly interpolate between two angles, trying to find the shortest path
Simply using lerp
will yield odd turning patterns, because angles wrap at 0 and 360.