[−][src]Function moore_hilbert::box_next_point
pub fn box_next_point(
bits_per_dimension: BitsPerDimensionType,
find_prev: bool,
coord1: &mut [HilbertCoordinate],
coord2: &mut [HilbertCoordinate],
point: &[HilbertCoordinate]
) -> bool
Determine the first point of a box after a given point to lie on a Hilbert curve.
Arguments
bits_per_dimension
- Number of bits per dimensionfind_prev
- Is the previous point sought?coord1
- Coordinates of one corner of the boxcoord2
- Coordinates of the opposite corner of the boxpoint
- Coordinates which are a lower bound on the point returned
Returns
If true coord1
and coord2
are modified to point to the least point after point
in the box.
If false the arguments are unchanged and the point is beyond the last point of the box
Assumptions
bits_per_dimension
<= (sizeof HilbertIndex
) * (bits_per_byte
)