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
length
elements that have a size ofvectorLength
. Optionally it is possible to specify anoffset
in the buffer and astride
between 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 anoffset
in the buffer and astride
between each vector. - VectorList.view(Float32List buffer, int vectorLength, [int offset = 0, int stride = 0])
-
Create a new vector list as a view of
buffer
for vectors that have a size ofvectorLength
. Optionally it is possible to specify anoffset
in thebuffer
and astride
between 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
count
vectors beginning atsrcOffset
fromsrc
into this list starting atoffset
. -
load(
int index, T vector) → void -
Retrieves the vector at
index
and 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
vector
in 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
v
in the list atindex
.