transformDirection method

  1. @override
InterleavedBufferAttribute transformDirection(
  1. Matrix4 m
)
override

Implementation

@override
InterleavedBufferAttribute transformDirection(Matrix4 m) {
  for (var i = 0, l = count; i < l; i++) {
    _vector.x = getX(i)!.toDouble();
    _vector.y = getY(i)!.toDouble();
    _vector.z = getZ(i)!.toDouble();

    _vector.transformDirection(m);

    setXYZ(i, _vector.x, _vector.y, _vector.z);
  }

  return this;
}