canBeReduced property

bool get canBeReduced

Determines if the size can be reduced (gcd > 1), indicating scalar nature.

Computed via Euclidean algorithm in _gcd, used to skip non-uniform tiles if allowScalarTiles is false.

Implementation

bool get canBeReduced {
  int a = w.abs(), b = h.abs();
  if (a == 0 || b == 0) return false;
  return _gcd(a, b) > 1;
}