API

Function EnumerateFloatValues

  • Enumerates each value of the data array and calls the given callback.

    Parameters

    • data: DataArray

      the data to enumerate

    • byteOffset: number

      the byte offset of the data

    • byteStride: number

      the byte stride of the data

    • componentCount: number

      the number of components per element

    • componentType: number

      the type of the component

    • count: number

      the number of values to enumerate

    • normalized: boolean

      whether the data is normalized

    • callback: (values: number[], index: number) => void

      the callback function called for each group of component values

    Returns void