Skip to main content

coordinate_position

Function coordinate_position 

Source
pub fn coordinate_position<P, G>(point: &P, geometry: &G) -> CoordinatePosition
where P: Point, G: Geometry, G::Kind: WithinStrategyForKind, <G::Kind as WithinStrategyForKind>::S: WithinStrategy<P, G>,
Expand description

Classify a point as inside, on the boundary, or outside a geometry.

This preserves the tri-state result that within() and covered_by() expose as separate boolean predicates.