1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//! # mesh-geometry
//!
//! High-performance, no_std-compatible geometry primitives and metrics for spatially discrete meshes.
//!
//! ## Features
//! - Core types: `Point2`, `Point3`, `Vec2`, `Vec3` with arithmetic, dot/cross, and conversion utilities.
//! - Cell metrics: triangle/quad area, centroids, tetrahedron/hexahedron volume, face normals, projected area.
//! - Geometry queries: point-in-polygon, ray-triangle intersection, point-to-cell distance.
//! - Advanced utilities: Jacobians, AABB, 3D affine transforms.
//! - `no_std` compatible (default: `std` enabled).
//! - Comprehensive documentation and examples.
//!
//! ## Example: Compute Cell Volumes
//!
//! ```rust
//! use mesh_geometry::{Point3};
//! use mesh_geometry::tetrahedron_volume;
//!
//! let a = Point3::new(0.0, 0.0, 0.0);
//! let b = Point3::new(1.0, 0.0, 0.0);
//! let c = Point3::new(0.0, 1.0, 0.0);
//! let d = Point3::new(0.0, 0.0, 1.0);
//! let vol = tetrahedron_volume(a, b, c, d);
//! assert!((vol - 1.0_f64/6.0_f64).abs() < 1e-12_f64);
//! ```
//!
//! More examples: see [examples/](https://github.com/tmathis720/mesh-geometry/tree/main/examples) and the [README](https://github.com/your-org/mesh-geometry#examples).
//!
//! ## Documentation
//! - [docs.rs/mesh-geometry](https://docs.rs/mesh-geometry)
//!
//! ## License
//! MIT
/// Prelude for ergonomic imports (core types, traits, and utilities).
pub use *;
/// Float trait alias for generic float support.
pub use Float;
/// 2D/3D point types and constructors.
/// 2D/3D vector types and operations.
/// Cell metrics: area, centroid, volume, normals, polygon, prism
pub use ;
/// Geometry queries: point-in-polygon, ray-triangle, distance, etc.
/// 3D affine transforms.
/// Advanced utilities: Jacobians, AABB, etc.
pub use ;