weresocool_core/generation/
normalizer.rs

1#[derive(Debug, Clone, Copy)]
2pub struct Normalizer {
3    pub x: MinMax,
4    pub y: MinMax,
5    pub z: MinMax,
6}
7
8#[derive(Debug, Clone, Copy)]
9pub struct MinMax {
10    pub min: f64,
11    pub max: f64,
12}
13
14impl Normalizer {
15    pub const fn default() -> Self {
16        Self {
17            x: MinMax {
18                min: -1.0,
19                max: 1.0,
20            },
21            y: MinMax {
22                min: 0.0,
23                max: 2000.0,
24            },
25            z: MinMax { min: 0.0, max: 1.0 },
26        }
27    }
28}