mathverse_geometry/
lib.rs1#![forbid(unsafe_code)]
2#![warn(missing_docs)]
3#![warn(clippy::all, clippy::pedantic, clippy::nursery)]
4#![allow(clippy::cast_precision_loss)]
5#![allow(clippy::cast_possible_truncation)]
6#![allow(clippy::cast_sign_loss)]
7#![allow(clippy::cast_possible_wrap)]
8#![allow(clippy::module_name_repetitions)]
9#![allow(clippy::missing_errors_doc)]
10#![allow(clippy::missing_panics_doc)]
11
12pub mod error;
22pub mod shapes2d;
23pub mod shapes3d;
24pub mod primitives2d;
25pub mod spatial;
26pub mod intersection;
27pub mod distance;
28pub mod transforms;
29pub mod metrics;
30pub mod mesh3d;
31
32pub use shapes2d::{Circle, Ellipse, Point2, Polygon, Rectangle, Triangle};
34pub use shapes3d::{Cone, Cube, Cylinder, Line3, Plane, Point3, Sphere};
35
36pub use primitives2d::{Arc, BezierCurve, CircularSegment, LineSegment2, Polyline, Ray2, Sector};
38
39pub use spatial::{AABB, AABB3, Frustum, OBB, Octree, Quadtree};
41
42pub use mesh3d::{AABBTreeNode, Triangle3, TriangleMesh};
44
45pub use transforms::Transform2D;