[−][src]Function moore_hilbert::box_point_float
pub fn box_point_float(
find_min: bool,
coord1: &mut [f64],
coord2: &mut [f64]
) -> usize
Determine the first or last point of a box to lie on a Hilbert curve
Arguments
bits_per_dimension
- Number of bits/coordinate.find_min
- Is it the least vertex sought?coord1
- Coordinates of one corner of boxcoord2
- Coordinates of the opposite corner of box
Returns
coord1
and coord2
are modified to refer to the least point
Assumptions
bits_per_dimension
<= (sizeof HilbertIndex
) * (bits_per_byte
)