11 lines
344 B
Rust
11 lines
344 B
Rust
use block_mesh::ilattice::glam;
|
|
use glam::Vec3A;
|
|
|
|
pub fn into_domain(_array_dim: u32, [x, y, z]: [u32; 3]) -> Vec3A {
|
|
Vec3A::new(x as f32, y as f32, z as f32) - 1.0
|
|
/*
|
|
let result = (2.0 / array_dim as f32) * Vec3A::new(x as f32, y as f32, z as f32) - 1.0;
|
|
println!("into_domain {},{},{} -> {}", x, y, z, result);
|
|
result*/
|
|
}
|