Skip to main content

Crate geometry_model

Crate geometry_model 

Source
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::Linestring from a comma-separated list of (x, y) tuples.
point
Construct a crate::Point2D or crate::Point3D from a tuple literal.
polygon
Construct a crate::Polygon from a bracketed list whose first element is the outer ring and the rest are holes (interior rings).

Structs§

Box
Axis-aligned bounding box.
DynGeometryCollection
A homogeneous-(Scalar, Cs), heterogeneous-kind collection of DynGeometry values — the v1.x OGC GeometryCollection.
InfiniteLine
An infinite line in the general form a*x + b*y + c = 0.
Linestring
Default Linestring — a Vec<P> newtype.
MultiLinestring
Default MultiLinestring — a Vec<L> newtype where L is any concrete LinestringTrait implementor.
MultiPoint
Default MultiPoint — a Vec<P> newtype.
MultiPolygon
Default MultiPolygon — a Vec<Pg> newtype where Pg is any concrete PolygonTrait implementor.
Point
Default Point — a [T; D] array plus a phantom CS tag.
PointingSegment
A segment borrowing two mutable endpoints instead of storing copies.
Polygon
Default Polygon — an outer Ring and a Vec of inner rings, all sharing the same point type and the same closure / traversal const generics.
PolyhedralSurface
A contiguous collection of polygon faces in three-dimensional space.
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.

Traits§

RebindGeometry
Select the stock model matching Self while replacing coordinate scalar and coordinate-system types.

Type Aliases§

Point2D
2D point alias.
Point3D
3D point alias.
Rebound
Rebound model for G with scalar T and coordinate system Cs.