Skip to content

createSplatField#mapLinearIndexToNd

Summary

createSplatField#mapLinearIndexToNd() decodes a linear splat index using ndShape.

Syntax

SplatField.mapLinearIndexToNd(index: number): number[] | null

Parameters

Name Type Required Description
index number Yes Zero-based linear splat index.

Returns

number[] | null - The decoded index, or null when no shape is configured or the index is invalid.

See Also