Skip to main content

on_boundary

Function on_boundary 

Source
pub fn on_boundary(poly: &[[f64; 2]], p: [f64; 2]) -> bool
Expand description

p が多角形の辺上(頂点を含む)にあるか。辺までの距離が BOUNDARY_TOL_MM 以内を辺上とする。頂点が 2 個未満なら偽。