[][src]Function moore_hilbert_sys::hilbert_nextinbox

pub unsafe extern "C" fn hilbert_nextinbox(
    nDims: c_uint,
    nBytes: c_uint,
    nBits: c_uint,
    findPrev: c_int,
    coord1: *mut c_void,
    coord2: *mut c_void,
    point: *const c_void
) -> c_int

Determine the first point of a box after a given point to lie on a Hilbert curve

Arguments

  • nDims - Number of coordinates.
  • nBytes - Number of bytes/coordinate.
  • nBits - Number of bits/coordinate.
  • findPrev - Is the previous point sought?
  • coord1 - Array of nDims nBytes-byte coordinates - one corner of box
  • coord2 - Array of nDims nBytes-byte coordinates - opposite corner
  • point - Array of nDims nBytes-byte coordinates - lower bound on point returned

Returns

If this function returns 1: c1 and c2 are modified to refer to the least point after point in the box If this function returns 0: arguments unchanged, point is beyond the last point of the box

Assumptions

nBits <= (sizeof BitmaskT) * (bits_per_byte)