Skip to main content

on_segment

Function on_segment 

Source
pub fn on_segment(a: Point, b: Point, point: Point) -> bool
Expand description

点 point が閉線分 ab 上にあるか判定します。

端点を含みます。計算量は O(1) です。 a == b のときは、point == a の場合だけ true です。