dotRow method Null safety

double dotRow(
  1. int i,
  2. Vector4 v
)

Returns the dot product of row i and v.

Implementation

double dotRow(int i, Vector4 v) {
  final vStorage = v._v4storage;
  return _m4storage[i] * vStorage[0] +
      _m4storage[4 + i] * vStorage[1] +
      _m4storage[8 + i] * vStorage[2] +
      _m4storage[12 + i] * vStorage[3];
}