operator + method

CropImageData operator +(
  1. CropImageData other
)

When adding two data objects, the translation is added, the rotation is added and the scale is multiplied.

Implementation

CropImageData operator +(CropImageData other) => CropImageData(
    x: x + other.x,
    y: y + other.y,
    angle: (angle + other.angle) % (2 * pi),
    scale: scale * other.scale);