applyMatrix4 method

void applyMatrix4(
  1. Matrix4 arg
)

Multiplies this by a 4x3 subset of arg. Expects arg to be an affine transformation matrix.

Implementation

void applyMatrix4(Matrix4 arg) {
  final Float64List argStorage = arg._m4storage;
  final double v2 = _v3storage[2];
  final double v1 = _v3storage[1];
  final double v0 = _v3storage[0];
  _v3storage[2] = argStorage[2] * v0 + argStorage[6] * v1 + argStorage[10] * v2 + argStorage[14];
  _v3storage[1] = argStorage[1] * v0 + argStorage[5] * v1 + argStorage[9] * v2 + argStorage[13];
  _v3storage[0] = argStorage[0] * v0 + argStorage[4] * v1 + argStorage[8] * v2 + argStorage[12];
}