#[unsafe(no_mangle)]pub unsafe extern "C" fn lc_cell_grid(
xyz: *const f64,
n: usize,
simbox: *const lc_cell,
cutoff: f64,
mask: *const c_int,
cell_hint: f64,
out_nxyz: *mut c_int,
out_width: *mut f64,
out_weight: *mut u64,
cap: usize,
out_ncell: *mut usize,
) -> c_intExpand description
Point counts on the linked-cell mesh.
out_nxyz receives nx, ny, nz. out_width receives the three bin
widths. out_weight receives one count per cell, in the order
((iz * ny) + iy) * nx + ix. A null out_weight is a query:
*out_ncell is the cell count and the return is 0.
ยงSafety
xyz is readable for n * 3 doubles. simbox points at one
lc_cell. mask, if non-null, is readable for n ints.
out_ncell is writable. On a fill, out_nxyz is writable for 3
ints, out_width for 3 doubles, and out_weight for *out_ncell
counts.