pub fn point_to_anchor(
point: &[f64; 3],
level: usize,
origin: &[f64; 3],
diameter: &[f64; 3],
) -> [usize; 4]Expand description
Map a point to the integer coordinates of its enclosing box.
Returns the 3 integeger coordinates of the enclosing box.
ยงArguments
point - The (x, y, z) coordinates of the point to map.
level - The level of the tree at which the point will be mapped.
origin - The origin of the bounding box.
diameter - The diameter of the bounding box in each dimension.