Function: depthOrder()
ts
function depthOrder(x, y, z, count, k, order, scratch?): Uint32Array;Experimental
Write into order[0..count) the point indices sorted back to front (farthest first: ascending view depth, see viewDepthCoefficients). Points with a non-finite coordinate go first (they are not drawn). Stable: equal depths keep their data order.
Parameters
| Parameter | Type |
|---|---|
x | ArrayLike<number> |
y | ArrayLike<number> |
z | ArrayLike<number> | null |
count | number |
k | readonly [number, number, number, number] |
order | Uint32Array |
scratch | DepthSortScratch |
Returns
Uint32Array