math_audio_xem_common/lib.rs
1//! Common types and utilities for BEM/FEM room acoustics simulators
2//!
3//! This crate provides shared functionality between BEM and FEM room acoustics
4//! simulators, including:
5//!
6//! - Room geometry definitions (rectangular, L-shaped rooms)
7//! - Sound source configuration (position, directivity, crossover)
8//! - JSON configuration loading/saving
9//! - Output JSON formatting
10//! - Visualization utilities
11
12mod config;
13mod geometry;
14mod output;
15mod source;
16mod types;
17
18pub use config::*;
19pub use geometry::*;
20pub use output::*;
21pub use source::*;
22pub use types::*;
23
24/// Library version
25pub fn version() -> &'static str {
26 env!("CARGO_PKG_VERSION")
27}
28
29#[cfg(test)]
30mod tests {
31 use super::*;
32
33 #[test]
34 fn test_version() {
35 assert!(!version().is_empty());
36 }
37}