[][src]Function moore_hilbert_sys::hilbert_ieee_cmp

pub unsafe extern "C" fn hilbert_ieee_cmp(
    nDims: c_uint,
    coord1: *const f64,
    coord2: *const f64
) -> c_int

Determine which of two points lies further along the Hilbert curve

Arguments

  • ndims - Number of coordinates.
  • nBytes - Number of bytes of storage/coordinate (hilbert_cmp only)
  • nBits - Number of bits/coordinate. (hilbert_cmp only)
  • coord1 - Array of nDims doubles
  • coord2 - Array of nDims doubles

Returns

  • -1, 0, or 1 according to whether coord1<coord2, coord1==coord, coord1>coord2

Assumptions

nBits <= (sizeof BitmaskT) * (bits_per_byte)"