setXYZW method
Sets the x, y, z and w components of the item at the given index.
Implementation
@override
InterleavedBufferAttribute setXYZW(int index, num x, num y, num z, num w) {
index = index * this.data!.stride + this.offset;
if ( this.normalized ) {
x = MathUtils.normalize( x, this.array );
y = MathUtils.normalize( y, this.array );
z = MathUtils.normalize( z, this.array );
w = MathUtils.normalize( w, this.array );
}
this.data!.array[ index + 0 ] = x;
this.data!.array[ index + 1 ] = y;
this.data!.array[ index + 2 ] = z;
this.data!.array[ index + 3 ] = w;
return this;
}