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
//! Vectors, quaternions, transforms, and deterministic scalar math.
//!
//! Core types ([`Vec3`], [`Quat`], [`Pos`], [`Transform`], [`Aabb`], …) and the
//! hand-rolled trig used for cross-platform determinism. Many of these are
//! re-exported at the crate root (`box3d_rust::Vec3`, `Pos`, …).
//!
//! With the `double-precision` feature, [`Pos`] (and related world-space
//! scalars) widen to match `BOX3D_DOUBLE_PRECISION`; collision math stays `f32`.
//!
//! Port of `include/box3d/math_functions.h` and `src/math_functions.c`.
//! Submodules form one flat namespace via re-exports here.
//!
//! SPDX-FileCopyrightText: 2025 Erin Catto
//! SPDX-License-Identifier: MIT
// Float literals are written with the exact digits of the C source, and Pos math casts
// through PosScalar so the same expression compiles in both precision modes (the cast is
// a no-op in single precision). These allows cascade into the submodules below.
pub use *;
pub use *;
pub use *;
pub use *;
pub use ;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;