pub fn within<P, G>(p: &P, g: &G) -> boolwhere
P: Point,
G: Geometry,
G::Kind: WithinStrategyForKind,
<G::Kind as WithinStrategyForKind>::S: WithinStrategy<P, G>,Expand description
true iff p lies in the strict interior of g.
Mirrors boost::geometry::within(p, g) from
boost/geometry/algorithms/within.hpp. The default strategy is
selected per geometry kind by the tag-keyed
[geometry_strategy::WithinStrategyForKind] picker (see
geometry_strategy::within), mirroring Boost’s
services::default_strategy resolution at
strategies/cartesian/point_in_poly_winding.hpp:254-258.
Boundary semantics follow Boost: a point on a segment, vertex, or
box face returns false from within and true from
covered_by. See test/strategies/winding.cpp:34-43 for the
reference cases (all corners and sides “officially false”).