Homesplat-transform API Reference - v3.10.0
    Preparing search index...

    Function sortMortonInterleaved

    • 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}].

      • indices: Uint32Array

        Indices to sort in place.

      • stride: number = 3

        Words per gaussian in positions (default 3).

      Returns void