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
// SPDX-FileCopyrightText: 2026 Daisuke Nagao
//
// SPDX-License-Identifier: MIT OR Apache-2.0
//! Backend-agnostic spatial vectors, motion subspaces, transforms, and inertias.
//!
//! The default `builtin` feature uses fixed Rust arrays. Disable default features
//! to provide your own [`SpatialRepresentation`], or enable `nalgebra` and/or
//! `glam` to use `Nalgebra` and `Glam` as the second public type parameter,
//! for example `MotionVector<f64, Nalgebra>`.
//!
//! The library source is always `no_std`. The default `std` feature forwards
//! std support to enabled numeric dependencies. Disable defaults for bare-metal
//! use; floating-point fallback support is enabled automatically. With supplied
//! backends and `f32`/`f64`, verified operations require no global allocator.
//! Custom implementations and serialization adapters control their own resource
//! requirements. This crate provides no panic handler or panic-free guarantee.
//!
//! Fixed-storage motion/force pairing with the `builtin` feature:
//!
//! ```
//! # #[cfg(feature = "builtin")]
//! # {
//! use spatial6::{Builtin, ForceVector, MotionVector};
//!
//! let motion = MotionVector::<f64, Builtin>::new([0.0, 0.0, 1.0], [2.0, 0.0, 0.0]);
//! let force = ForceVector::<f64, Builtin>::new([0.0, 0.0, 3.0], [4.0, 0.0, 0.0]);
//! assert_eq!(motion.dot(&force), 11.0);
//! # }
//! ```
pub use Builtin;
pub use Glam;
pub use Nalgebra;
pub use ;
pub use ;
pub use MotionSubspace;
pub use SpatialTransform;
pub use ;