Skip to main content

geometry_model/
lib.rs

1//! Default concrete geometry types.
2//!
3//! Each type here implements the matching trait from `geometry-trait`.
4//! Mirrors `boost/geometry/geometries/*.hpp` — the Boost.Geometry
5//! "model" namespace of stock geometries (`model::point`,
6//! `model::segment`, `model::box`, …) that the library ships for
7//! callers who do not want to adapt their own types.
8
9#![cfg_attr(not(feature = "std"), no_std)]
10#![forbid(unsafe_code)]
11
12extern crate alloc;
13
14mod boxg;
15mod dyn_collection;
16mod dyn_geometry;
17mod geometry_rebind;
18mod infinite_line;
19mod linestring;
20mod macros;
21mod multi;
22mod point;
23mod pointing_segment;
24mod polygon;
25mod polyhedral_surface;
26mod ring;
27mod segment;
28
29pub use boxg::Box;
30pub use dyn_collection::DynGeometryCollection;
31pub use dyn_geometry::{DynGeometry, DynKind};
32pub use geometry_rebind::{RebindGeometry, Rebound};
33pub use infinite_line::InfiniteLine;
34pub use linestring::Linestring;
35pub use multi::{MultiLinestring, MultiPoint, MultiPolygon};
36pub use point::{Point, Point2D, Point3D};
37pub use pointing_segment::PointingSegment;
38pub use polygon::Polygon;
39pub use polyhedral_surface::PolyhedralSurface;
40pub use ring::Ring;
41pub use segment::Segment;