pub fn num_points<G>(g: &G) -> usizeExpand description
Total number of points in g.
Point→1Segment→2(the two endpoints)Box→2^Dcorner points (num_points.hpp:100-101) — 4 in 2DLinestring/Ring→ length of the stored point sequencePolygon→ exterior + Σ interior ring point countsMulti*→ sum over members
Mirrors boost::geometry::num_points(g) from
boost/geometry/algorithms/num_points.hpp. The per-kind body is
selected by the tag-keyed [NumPointsStrategyForKind] picker, so any
concept-adapted foreign type resolves through the same path as the
equivalent geometry-model value.