JavaScript Float32Array : Object
Array where each item is a 32 bit (4 byte) floating point number. Float32Arrays cannot change size after creation. Constructors
Creates a new Float32Array of the specified length where each item starts out as 0
Example:
RunResults:
Creates a new Float32Array and copies the items of array into this. The copied items are converted to 32 bit floats before being stored in this.
Example:
RunResults:
Creates a new Float32Array and copies the items of array into this. array can be any of the typed array types and the copied items will be converted to 32 bit floats before being stored in this.
Example:
RunResults:
Creates a view on top of the specified buffer starting at byteOffset of length items. Changes to the items in this actual affect the underlying buffer, and vice versa. byteOffset must be a multiple of 4. (Use DataView for unaligned data.) If length is not specified, the returned Float32Array's buffer.length - byteOffset must be a multiple of 4 and this.length will be (buffer.length - byteOffset) / 4.
Example:
RunResults:
Instance Methods
Copies items from array into this starting at this[offset]. Copied items are converted to 32 bit floats before storing in this.
Example:
RunResults:
Copies items from array into this starting at this[offset]. array can be any of the typed array types and the copied items will be converted to 32 bit floats before storing in this.
Example:
RunResults:
Returns a new Float32Array that is a view on top of this containing items this[begin], this[begin + 1], ..., this[end - 1]. The 0th item in the returned array in the same memory location as this[begin]. If end is not specified, this.length is used.