applyMatrix3 method
Applies matrix m
to every Vector3 element of this
BufferAttribute.
Implementation
BufferAttribute applyMatrix3(Matrix3 m) {
if (itemSize == 2) {
for (int i = 0, l = count; i < l; i++) {
_vector2.fromBuffer(this, i);
_vector2.applyMatrix3(m);
setXY(i, _vector2.x, _vector2.y);
}
} else if (itemSize == 3) {
for (int i = 0, l = count; i < l; i++) {
_vector.fromBuffer(this, i);
_vector.applyMatrix3(m);
setXYZ(i, _vector.x, _vector.y, _vector.z);
}
}
return this;
}