pub fn ray_segment(
ox: f64,
oy: f64,
dx: f64,
dy: f64,
ax: f64,
ay: f64,
bx: f64,
by: f64,
) -> Option<(f64, f64)>Expand description
Ray/segment intersection. Returns (t, s) where the hit point is o + d*t
and s in [0,1] is the position along the segment a -> b.