pub fn wrap_angle(r: f64, upper: [f64; 3], lower: [f64; 3]) -> f64Expand description
The angle (rad) by which a belt wraps a pulley of radius r (effects.belt_wrap), the pulley’s centre at the origin and
its two spans leaving towards +x, one over the top, one under the bottom. Each span runs to the next wheel, given as
(d, h, r2): its centre d along +x and h out on the span’s own side (up for the upper span, down for the lower), and
its radius r2, positive where pulley and wheel lie on either side of the belt (an inner tangent), negative where on
the same side (an outer tangent), 0 for a clamp. A span leans away from the pulley by atan2(h, d) - asin((r + r2) / D),
D the distance of the centres (0 for a span that leaves level), and takes as much off the half turn:
wrap = pi - lean_upper - lean_lower.