[−][src]Function moore_hilbert_sys::hilbert_box_pt
pub unsafe extern "C" fn hilbert_box_pt(
nDims: c_uint,
nBytes: c_uint,
nBits: c_uint,
findMin: c_int,
coord1: *mut c_void,
coord2: *mut c_void
) -> c_uint
Determine the first or last point of a box to lie on a Hilbert curve
Arguments
nDims
- Number of coordinates.nBytes
- Number of bytes/coordinate.nBits
- Number of bits/coordinate.findMin
- Is it the least vertex sought?coord1
- Array of nDims nBytes-byte coordinates - one corner of boxcoord2
- Array of nDims nBytes-byte coordinates - opposite corner
Returns
c1
and c2
are modified to refer to the least point
Assumptions
nBits
<= (sizeof BitmaskT
) * (bits_per_byte
)