Returns an empty/blank instance of same type (with possibly same config, if any).
Merges given src
iterable of Vec4s into single array buf
. Vectors will be arranged according to given component and element strides, starting at start
index. It's the user's responsibility to ensure the target buffer has sufficient capacity to hold the input vectors. See Vec4.mapBuffer
for the inverse operation. Returns buf
.
-
-
-
-
-
Returns array of memory mapped Vec4 instances using given backing array and stride settings: The cstride
is the step size between individual XYZ vector components. estride
is the step size between successive vectors. This arrangement allows for different storage approaches, incl. SOA, AOS, striped / interleaved etc.
backing array
num vectors
start index
component stride
element stride
Generated using TypeDoc
Returns a copy of this instance. Shallow or deep copies are implementation specific.