Function rusty_tree::morton::encode_points[][src]

pub fn encode_points<T: RealType>(
    points: ArrayView2<'_, T>,
    level: usize,
    origin: &[f64; 3],
    diameter: &[f64; 3]
) -> Array1<usize>
Expand description

Encode many points.

Return an array containing all Morton keys of a given array of points.

Arguments

point - A (3 ,N) array of N points of type f32 or f64. 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.