Interface Float32ArrayConstructor
interface Float32ArrayConstructor {
new Float32ArrayConstructor(length: number): Float32Array<ArrayBuffer>;
new Float32ArrayConstructor(
array: ArrayLike<number>,
): Float32Array<ArrayBuffer>;
new Float32ArrayConstructor<
TArrayBuffer extends ArrayBufferLike = ArrayBuffer,
>(
buffer: TArrayBuffer,
byteOffset?: number,
length?: number,
): Float32Array<TArrayBuffer>;
new Float32ArrayConstructor(
array: ArrayBuffer | ArrayLike<number>,
): Float32Array<ArrayBuffer>;
new Float32ArrayConstructor(
elements: Iterable<number>,
): Float32Array<ArrayBuffer>;
new Float32ArrayConstructor(): Float32Array<ArrayBuffer>;
BYTES_PER_ELEMENT: number;
prototype: Float32Array;
from(arrayLike: ArrayLike<number>): Float32Array<ArrayBuffer>;
from<T>(
arrayLike: ArrayLike<T>,
mapfn: (v: T, k: number) => number,
thisArg?: any,
): Float32Array<ArrayBuffer>;
from(arrayLike: Iterable<number>): Float32Array<ArrayBuffer>;
from<T>(
arrayLike: Iterable<T>,
mapfn?: (v: T, k: number) => number,
thisArg?: any,
): Float32Array<ArrayBuffer>;
of(...items: number[]): Float32Array<ArrayBuffer>;
}
new Float32ArrayConstructor(length: number): Float32Array<ArrayBuffer>;
new Float32ArrayConstructor(
array: ArrayLike<number>,
): Float32Array<ArrayBuffer>;
new Float32ArrayConstructor<
TArrayBuffer extends ArrayBufferLike = ArrayBuffer,
>(
buffer: TArrayBuffer,
byteOffset?: number,
length?: number,
): Float32Array<TArrayBuffer>;
new Float32ArrayConstructor(
array: ArrayBuffer | ArrayLike<number>,
): Float32Array<ArrayBuffer>;
new Float32ArrayConstructor(
elements: Iterable<number>,
): Float32Array<ArrayBuffer>;
new Float32ArrayConstructor(): Float32Array<ArrayBuffer>;
BYTES_PER_ELEMENT: number;
prototype: Float32Array;
from(arrayLike: ArrayLike<number>): Float32Array<ArrayBuffer>;
from<T>(
arrayLike: ArrayLike<T>,
mapfn: (v: T, k: number) => number,
thisArg?: any,
): Float32Array<ArrayBuffer>;
from(arrayLike: Iterable<number>): Float32Array<ArrayBuffer>;
from<T>(
arrayLike: Iterable<T>,
mapfn?: (v: T, k: number) => number,
thisArg?: any,
): Float32Array<ArrayBuffer>;
of(...items: number[]): Float32Array<ArrayBuffer>;
}
Index
Constructors
constructor
- new Float32ArrayConstructor(length: number): Float32Array<ArrayBuffer>
Parameters
- length: number
Returns Float32Array<ArrayBuffer>
- new Float32ArrayConstructor(array: ArrayLike<number>): Float32Array<ArrayBuffer>
Parameters
- array: ArrayLike<number>
Returns Float32Array<ArrayBuffer>
- new Float32ArrayConstructor<TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(
buffer: TArrayBuffer,
byteOffset?: number,
length?: number,
): Float32Array<TArrayBuffer> Type Parameters
- TArrayBuffer extends ArrayBufferLike = ArrayBuffer
Parameters
- buffer: TArrayBuffer
Optional
byteOffset: numberOptional
length: number
Returns Float32Array<TArrayBuffer>
- new Float32ArrayConstructor(
array: ArrayBuffer | ArrayLike<number>,
): Float32Array<ArrayBuffer> Parameters
- array: ArrayBuffer | ArrayLike<number>
Returns Float32Array<ArrayBuffer>
- new Float32ArrayConstructor(
elements: Iterable<number>,
): Float32Array<ArrayBuffer> Parameters
- elements: Iterable<number>
Returns Float32Array<ArrayBuffer>
- new Float32ArrayConstructor(): Float32Array<ArrayBuffer>
Returns Float32Array<ArrayBuffer>
Methods
from
- from(arrayLike: ArrayLike<number>): Float32Array<ArrayBuffer>
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<ArrayBuffer>
- arrayLike: ArrayLike<number>
- from<T>(
arrayLike: ArrayLike<T>,
mapfn: (v: T, k: number) => number,
thisArg?: any,
): Float32Array<ArrayBuffer> Creates an array from an array-like or iterable object.
Type Parameters
Parameters
Returns Float32Array<ArrayBuffer>
- from(arrayLike: Iterable<number>): Float32Array<ArrayBuffer>
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.
Returns Float32Array<ArrayBuffer>
- arrayLike: Iterable<number>
- from<T>(
arrayLike: Iterable<T>,
mapfn?: (v: T, k: number) => number,
thisArg?: any,
): Float32Array<ArrayBuffer> Creates an array from an array-like or iterable object.
Type Parameters
Parameters
Returns Float32Array<ArrayBuffer>
of
- of(...items: number[]): Float32Array<ArrayBuffer>
Returns a new array from a set of elements.
Parameters
- ...items: number[]
A set of elements to include in the new array object.
Returns Float32Array<ArrayBuffer>
- ...items: number[]
The size in bytes of each element in the array.