VectorList<T extends Vector> class
abstract
Abstract base class for vector lists. See Vector2List, Vector3List, and Vector4List for implementations of this class.
- Implementers
Constructors
- VectorList(int length, int vectorLength, [int offset = 0, int stride = 0])
-
Create a new vector list with
lengthelements that have a size ofvectorLength. Optionally it is possible to specify anoffsetin the buffer and astridebetween each vector. -
VectorList.fromList(List<
T> list, int vectorLength, [int offset = 0, int stride = 0]) -
Create a new vector list from a list of vectors that have a size of
vectorLength. Optionally it is possible to specify anoffsetin the buffer and astridebetween each vector. - VectorList.view(Float32List buffer, int vectorLength, [int offset = 0, int stride = 0])
-
Create a new vector list as a view of
bufferfor vectors that have a size ofvectorLength. Optionally it is possible to specify anoffsetin thebufferand astridebetween each vector.
Properties
- buffer → Float32List
-
The internal storage buffer of this list.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
The count of vectors in this list.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copy(
VectorList< T> src, {int srcOffset = 0, int offset = 0, int count = 0}) → void -
Copy a range of
countvectors beginning atsrcOffsetfromsrcinto this list starting atoffset. -
load(
int index, T vector) → void -
Retrieves the vector at
indexand stores it invector. -
newVector(
) → T -
Create a new instance of
T. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
store(
int index, T vector) → void -
Store
vectorin the list atindex. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int index) → T -
Retrieves the vector at
index. -
operator []=(
int index, T v) → void -
Store
vin the list atindex.