Skip to main content

Module within

Module within 

Source
Expand description

within(&p, &g) / covered_by(&p, &g) — point-in-geometry containment, see boost/geometry/algorithms/within.hpp and boost/geometry/algorithms/covered_by.hpp.

Cartesian-only in v1, point-as-first-argument only. The default strategy is the winding-number PIP from boost/geometry/strategies/cartesian/point_in_poly_winding.hpp, selected per geometry kind by the tag-keyed [geometry_strategy::WithinStrategyForKind] picker, so any concept-adapted foreign type resolves through the same path as the equivalent geometry-model value. Spherical / geographic variants arrive alongside the Haversine / Andoyer / Vincenty distance work in later tasks.

Functions§

covered_by
true iff p lies in the strict interior or on the boundary of g.
within
true iff p lies in the strict interior of g.