multiplySkipIdentity static method

Mat2D multiplySkipIdentity(
  1. Mat2D a,
  2. Mat2D b
)

Implementation

static Mat2D multiplySkipIdentity(Mat2D a, Mat2D b) {
  if (a == Mat2D.identity) {
    return b;
  } else if (b == Mat2D.identity) {
    return a;
  } else {
    return multiply(Mat2D(), a, b);
  }
}