Skip to main content

lib_jsl_geometry/
mod.rs

1//! Computational geometry: primitive types in one to four dimensions and the algorithms that work
2//! on points and meshes.
3//!
4//! - [`algorithms`]: Delaunay triangulation and Voronoi diagrams, convex hulls in 2D and 3D,
5//!   polygon boolean operations, k-d trees, quadtrees and octrees, intersection tests and closest
6//!   points, rotations and quaternions, and mesh smoothing, decimation and slicing. These take
7//!   plain `f64` arrays such as `[f64; 3]` and index triples.
8//! - The primitive types: coordinate, free and unit vectors, lines, planes, triangles, polygon
9//!   faces, tetrahedra and meshes in [`one_d`], [`two_d`] and [`three_d`], whose shapes refer to
10//!   shared points by id through the keyed tables of [`registry`] and [`tables`] (start with
11//!   [`crate::concrete`] and a [`GeometryTableRegistry`](crate::registry::GeometryTableRegistry)).
12//!   Their components are `f32`.
13//! - [`four_d`]: Minkowski four-vectors with Lorentz boosts, and Christoffel symbols for geodesics
14//!   in curved space-time.
15//! - [`coordinate_systems`], [`geometric_traits`] and [`transformation_traits`]: coordinate
16//!   systems and the shared trait surface.
17//!
18//! See the book entry [Computational geometry](https://jwkunz.github.io/lib_jsl/book/geometry/index.html).
19
20pub mod algorithms;
21/// Shared foundational traits used across all geometry dimensions.
22pub mod common;
23/// Coordinate-system enums and conversion traits.
24pub mod coordinate_systems;
25/// Compatibility re-exports for the concrete geometry implementation surface.
26pub mod concrete;
27/// Concrete root registry for geometry tables.
28pub mod registry;
29/// Concrete keyed geometry table implementations.
30pub mod tables;
31/// Traits for geometric transformations such as translation and rotation.
32pub mod transformation_traits;
33/// Zero-dimensional geometry traits centered on points.
34pub mod dim_0;
35/// Alias for [`dim_0`].
36pub use dim_0 as zero_d;
37/// One-dimensional geometry traits such as lines, rays, and paths.
38pub mod dim_1;
39/// Alias for [`dim_1`].
40pub use dim_1 as one_d;
41/// Two-dimensional geometry traits and orientation helpers.
42pub mod dim_2;
43/// Alias for [`dim_2`].
44pub use dim_2 as two_d;
45/// Three-dimensional geometry traits such as planes, spheres, and meshes.
46pub mod dim_3;
47/// Alias for [`dim_3`].
48pub use dim_3 as three_d;
49/// Four-dimensional geometry extension points.
50pub mod dim_4;
51/// Alias for [`dim_4`].
52pub use dim_4 as four_d;
53/// Compatibility re-exports for the geometry trait surface.
54pub mod geometric_traits;