Interface Float32ArrayConstructor
interface Float32ArrayConstructor {
new Float32ArrayConstructornew (length: number): Float32Array;
new Float32ArrayConstructornew (array: ArrayBufferLike | ArrayLike<number>): Float32Array;
new Float32ArrayConstructornew (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
new Float32ArrayConstructornew (elements: Iterable<number, any, any>): Float32Array;
new Float32ArrayConstructornew (): Float32Array;
BYTES_PER_ELEMENT: number;
prototype: Float32Array;
from(arrayLike: ArrayLike<number>): Float32Array;
from<T>(arrayLike: ArrayLike<T>, mapfn: ((v: T, k: number) => number), thisArg?: any): Float32Array;
from(arrayLike: Iterable<number, any, any>, mapfn?: ((v: number, k: number) => number), thisArg?: any): Float32Array;
of(...items: number[]): Float32Array;
}
new Float32ArrayConstructornew (length: number): Float32Array;
new Float32ArrayConstructornew (array: ArrayBufferLike | ArrayLike<number>): Float32Array;
new Float32ArrayConstructornew (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
new Float32ArrayConstructornew (elements: Iterable<number, any, any>): Float32Array;
new Float32ArrayConstructornew (): Float32Array;
BYTES_PER_ELEMENT: number;
prototype: Float32Array;
from(arrayLike: ArrayLike<number>): Float32Array;
from<T>(arrayLike: ArrayLike<T>, mapfn: ((v: T, k: number) => number), thisArg?: any): Float32Array;
from(arrayLike: Iterable<number, any, any>, mapfn?: ((v: number, k: number) => number), thisArg?: any): Float32Array;
of(...items: number[]): Float32Array;
}
Index
Constructors
constructor
- new
Float32 (length): Float32ArrayArray Constructor Parameters
- length: number
Returns Float32Array
- new
Float32 (array): Float32ArrayArray Constructor Parameters
- array: ArrayBufferLike | ArrayLike<number>
Returns Float32Array
- new
Float32 (buffer, byteOffset?, length?): Float32ArrayArray Constructor Parameters
- buffer: ArrayBufferLike
Optional
byteOffset: numberOptional
length: number
Returns Float32Array
- new
Float32 (elements): Float32ArrayArray Constructor Parameters
- elements: Iterable<number, any, any>
Returns Float32Array
- new
Float32 (): Float32ArrayArray Constructor Returns Float32Array
Methods
from
- from(arrayLike): Float32Array
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
- arrayLike: ArrayLike<number>
- from<T>(arrayLike, mapfn, thisArg?): Float32Array
Creates an array from an array-like or iterable object.
Type Parameters
Parameters
Returns Float32Array
- from(arrayLike, mapfn?, thisArg?): Float32Array
Creates an array from an array-like or iterable object.
Parameters
- arrayLike: Iterable<number, any, any>
An array-like or iterable object to convert to an array.
Optional
mapfn: ((v: number, k: number) => number)A mapping function to call on every element of the array.
- (v, k): number
Parameters
- v: number
- k: number
Returns number
Optional
thisArg: anyValue of 'this' used to invoke the mapfn.
Returns Float32Array
- arrayLike: Iterable<number, any, any>
of
- of(...items): Float32Array
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
The size in bytes of each element in the array.