Vector4List class Null safety

A list of Vector4.

Inheritance

Constructors

Vector4List(int length, [int offset = 0, int stride = 0])
Create a new vector list with length elements. Optionally it is possible to specify an offset in the buffer and a stride between 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 offset in the buffer and a stride between 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 a offset in the buffer and a stride between each vector.

Properties

buffer Float32List
The internal storage buffer of this list.
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
length int
The count of vectors in this list.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

add(int index, Vector4 vector) → void
Add vector to the vector at index.
addScaled(int index, Vector4 vector, double factor) → void
Add vector scaled by factor to the vector at index.
copy(VectorList<Vector4> src, {int srcOffset = 0, int offset = 0, int count = 0}) → void
Copy a range of count vectors beginning at srcOffset from src into this list starting at offset.
inherited
load(int index, Vector4 vector) → void
Retrieves the vector at index and stores it in vector.
override
multiply(int index, Vector4 vector) → void
Multiply the vector at index by vector.
newVector() Vector4
Create a new instance of T.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
scale(int index, double factor) → void
Scale the vector at index by factor.
setValues(int index, double x, double y, double z, double w) → void
Set the vector at index to x, y, z, and w.
setZero(int index) → void
Set the vector at index to zero.
store(int index, Vector4 vector) → void
Store vector in the list at index.
override
sub(int index, Vector4 vector) → void
Substract vector from the vector at index.
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 v in the list at index.
inherited