Package pyjsdl :: Module pyjsarray :: Class Float32Array

Class Float32Array

object --+    
         |    
TypedArray --+
             |
            Float32Array

Create a TypedArray interface to Float32Array.
Instance Methods
 
__init__(self, data=None, offset=None, length=None)
The TypedArray object is instantiated with either the array size, an array of TypedArray or Python type, or an existing ArrayBuffer to view, which creates a new TypedArray of size and included data as the specified type. Optional arguments include offset index at which ArrayBuffer data is inserted and length of an ArrayBuffer.
 
__getitem__(self, index)

Inherited from TypedArray: __iter__, __len__, __setitem__, __str__, filter, getArray, getBuffer, getByteLength, getByteOffset, getBytesPerElement, getLength, map, reduce, set, setArray, slice, subarray

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, data=None, offset=None, length=None)
(Constructor)

 
The TypedArray object is instantiated with either the array size, an array of TypedArray or Python type, or an existing ArrayBuffer to view, which creates a new TypedArray of size and included data as the specified type. Optional arguments include offset index at which ArrayBuffer data is inserted and length of an ArrayBuffer.
Overrides: object.__init__
(inherited documentation)

__getitem__(self, index)
(Indexing operator)

 
Overrides: TypedArray.__getitem__