[][src]Function moore_hilbert::box_float_vertex

pub fn box_float_vertex(
    find_min: bool,
    coord1: &mut [f64],
    coord2: &mut [f64]
) -> usize

Determine the first or last vertex of a box to lie on a Hilbert curve

Arguments

  • find_min - Is the least vertex sought?
  • c1 - One corner of box
  • c2 - Opposite corner

Returns

c1 and c2 modified to refer to selected corder value returned is log2 of size of largest power-of-two-aligned box that contains the selected corner and no other corners

Assumptions

bits_per_dimension <= (sizeof HilbertIndex) * (bits_per_byte)