isTranslation property

bool get isTranslation

Whether the transform represents a pure translation, i.e. a transform of the form (x, y) -> (x + Δx, y + Δy).

Implementation

bool get isTranslation {
  return _angle == 0 && _scale.x == 1 && _scale.y == 1;
}