Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Float32ArrayConstructor

Package version

Hierarchy

  • Float32ArrayConstructor

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • length: number

    Returns Float32Array

  • Parameters

    Returns Float32Array

  • Parameters

    • buffer: ArrayBufferLike
    • byteOffset: number
    • Optional length: undefined | number

    Returns Float32Array

  • Parameters

    Returns Float32Array

Properties

BYTES_PER_ELEMENT

BYTES_PER_ELEMENT: number

The size in bytes of each element in the array.

prototype

prototype: Float32Array

Methods

from

  • Creates an array from an array-like or iterable object.

    Parameters

    • arrayLike: ArrayLike<number>

      An array-like or iterable object to convert to an array.

    Returns Float32Array

  • Creates an array from an array-like or iterable object.

    Type parameters

    • T

    Parameters

    • arrayLike: ArrayLike<T>

      An array-like or iterable object to convert to an array.

    • mapfn: (v: T, k: number) => number

      A mapping function to call on every element of the array.

        • (v: T, k: number): number
        • Parameters

          • v: T
          • k: number

          Returns number

    • Optional thisArg: any

      Value of 'this' used to invoke the mapfn.

    Returns Float32Array

  • Creates an array from an array-like or iterable object.

    Parameters

    • arrayLike: Iterable<number>

      An array-like or iterable object to convert to an array.

    • Optional mapfn: undefined | ((v: number, k: number) => number)

      A mapping function to call on every element of the array.

    • Optional thisArg: any

      Value of 'this' used to invoke the mapfn.

    Returns Float32Array

of

  • Returns a new array from a set of elements.

    Parameters

    • Rest ...items: number[]

      A set of elements to include in the new array object.

    Returns Float32Array

Generated using TypeDoc