Vector4List class
A list of Vector4.
- Inheritance
-
- Object
- VectorList<
Vector4> - Vector4List
Constructors
- Vector4List(int length, [int offset = 0, int stride = 0])
-
Create a new vector list with
lengthelements. Optionally it is possible to specify anoffsetin the buffer and astridebetween each vector. -
Vector4List.fromList(List<
Vector4> list, [int offset = 0, int stride = 0]) -
Create a new vector list from a list of vectors. Optionally it is possible
to specify an
offsetin the buffer and astridebetween each vector. - Vector4List.view(Float32List buffer, [int offset = 0, int stride = 0])
-
Create a new vector list as a view of
buffer. Optionally it is possible to specify aoffsetin thebufferand astridebetween each vector.
Properties
- buffer → Float32List
-
The internal storage buffer of this list.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
The count of vectors in this list.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
int index, Vector4 vector) → void -
Add
vectorto the vector atindex. -
addScaled(
int index, Vector4 vector, double factor) → void -
Add
vectorscaled byfactorto the vector atindex. -
copy(
VectorList< Vector4> src, {int srcOffset = 0, int offset = 0, int count = 0}) → void -
Copy a range of
countvectors beginning atsrcOffsetfromsrcinto this list starting atoffset.inherited -
load(
int index, Vector4 vector) → void -
Retrieves the vector at
indexand stores it invector.override -
multiply(
int index, Vector4 vector) → void -
Multiply the vector at
indexbyvector. -
newVector(
) → Vector4 -
Create a new instance of
T.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scale(
int index, double factor) → void -
Scale the vector at
indexbyfactor. -
setValues(
int index, double x, double y, double z, double w) → void -
Set the vector at
indextox,y,z, andw. -
setZero(
int index) → void -
Set the vector at
indexto zero. -
store(
int index, Vector4 vector) → void -
Store
vectorin the list atindex.override -
sub(
int index, Vector4 vector) → void -
Substract
vectorfrom the vector atindex. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int index) → Vector4 -
Retrieves the vector at
index.inherited -
operator []=(
int index, Vector4 v) → void -
Store
vin the list atindex.inherited