Expand description
Default concrete geometry types.
Each type here implements the matching trait from geometry-trait.
Mirrors boost/geometry/geometries/*.hpp — the Boost.Geometry
“model” namespace of stock geometries (model::point,
model::segment, model::box, …) that the library ships for
callers who do not want to adapt their own types.
Macros§
- linestring
- Construct a
crate::Linestringfrom a comma-separated list of(x, y)tuples. - point
- Construct a
crate::Point2Dorcrate::Point3Dfrom a tuple literal. - polygon
- Construct a
crate::Polygonfrom a bracketed list whose first element is the outer ring and the rest are holes (interior rings).
Structs§
- Box
- Axis-aligned bounding box.
- DynGeometry
Collection - A homogeneous-
(Scalar, Cs), heterogeneous-kind collection ofDynGeometryvalues — the v1.x OGCGeometryCollection. - Linestring
- Default Linestring — a
Vec<P>newtype. - Multi
Linestring - Default
MultiLinestring— aVec<L>newtype whereLis any concreteLinestringTraitimplementor. - Multi
Point - Default
MultiPoint— aVec<P>newtype. - Multi
Polygon - Default
MultiPolygon— aVec<Pg>newtype wherePgis any concretePolygonTraitimplementor. - Point
- Default Point — a
[T; D]array plus a phantom CS tag. - Polygon
- Default Polygon — an outer
Ringand aVecof inner rings, all sharing the same point type and the same closure / traversal const generics. - Ring
- Default Ring — a
Vec<P>newtype carrying closure and traversal direction as const generics. - Segment
- Two-point segment.
Enums§
- DynGeometry
- A geometry whose OGC kind is decided at runtime.
- DynKind
- Discriminant of
DynGeometry. Stable across releases.