| 1 | // the core module provides traits for implementing vector, quaternion and matrix operations, |
| 2 | // storage structs for scalar vector, quaternion and matrix data and implementations of the traits |
| 3 | // for those structs and for supported SIMD types such as SSE2's `__m128`. |
| 4 | // |
| 5 | // The higher level glam library types have an inner type which either uses one of these storage |
| 6 | // structs, or `__m128` and the actual implementation is provided by the core module. |
| 7 | // |
| 8 | // This architecture allows the public API to not require generics or traits, while still |
| 9 | // supporting a number of Rust primitive types and SIMD architectures such as SSE2. |
| 10 | // |
| 11 | pub mod storage; |
| 12 | pub mod traits; |
| 13 | |
| 14 | mod scalar; |
| 15 | #[cfg(all(target_feature = "sse2", not(feature = "scalar-math")))] |
| 16 | mod sse2; |
| 17 | #[cfg(all(target_feature = "simd128", not(feature = "scalar-math")))] |
| 18 | mod wasm32; |