Sort indices in place into morton (Z-order) using interleaved positions
[x, y, z, x, y, z, ...] — the natural packing of the position layer.
stride lets the same call sort a wider record whose first three words are
xyz, e.g. a packed [x, y, z, w] GPU texture row viewed as floats, without
copying the positions out first.
Parameters
positions: ArrayLike<number>
Interleaved xyz; gaussian g is at positions[g*stride + {0,1,2}].
Sort
indicesin place into morton (Z-order) using interleaved positions[x, y, z, x, y, z, ...]— the natural packing of thepositionlayer.stridelets the same call sort a wider record whose first three words are xyz, e.g. a packed[x, y, z, w]GPU texture row viewed as floats, without copying the positions out first.