Skip to main content

on_segment

Function on_segment 

Source
pub fn on_segment(p: [f64; 2], q: [f64; 2], r: [f64; 2]) -> bool
Expand description

Whether point q lies on segment p-r (given that p, q, r are collinear).