isAffine static method

bool isAffine(
  1. Matrix4 matrix4
)

Implementation

static bool isAffine(Matrix4 matrix4) {
  Float64List m = matrix4.storage;
  // is 2D
  return (
    m[2] == 0 &&
    m[3] == 0 &&
    m[6] == 0 &&
    m[7] == 0 &&
    m[8] == 0 &&
    m[9] == 0 &&
    m[10] == 1 &&
    m[11] == 0 &&
    m[14] == 0 &&
    m[15] == 1
  );
}