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
#![allow(dead_code, unused_variables)]
pub mod algos;
pub mod core;
pub mod data;
pub mod kernel;
pub mod math;
pub mod util;
pub mod lines;
pub mod planar;
pub mod pts;
pub mod raster;
pub mod solid;
pub mod srf;
#[cfg(feature = "bevy")]
pub mod render;
#[cfg(feature = "bevy")]
pub mod smoothing;
#[cfg(test)]
mod tests {
use crate::{kernel::fxx, math::elastic_out};
#[test]
fn elastics() {
for i in 0..101 {
let t = (i as fxx) / 100.0;
println!("{}: {}", t, elastic_out(t));
}
}
}