multiply method

void multiply(
  1. Matrix2 arg
)

Multiply this with arg and store it in this.

Implementation

void multiply(Matrix2 arg) {
  final m00 = _m2storage[0];
  final m01 = _m2storage[2];
  final m10 = _m2storage[1];
  final m11 = _m2storage[3];
  final argStorage = arg._m2storage;
  final n00 = argStorage[0];
  final n01 = argStorage[2];
  final n10 = argStorage[1];
  final n11 = argStorage[3];
  _m2storage[0] = (m00 * n00) + (m01 * n10);
  _m2storage[2] = (m00 * n01) + (m01 * n11);
  _m2storage[1] = (m10 * n00) + (m11 * n10);
  _m2storage[3] = (m10 * n01) + (m11 * n11);
}