operator + method

Offset operator + (Offset other)

Binary addition operator.

Returns an offset whose dx value is the sum of the dx values of the two operands, and whose dy value is the sum of the dy values of the two operands.

See also translate.

Implementation

Offset operator +(Offset other) => new Offset(dx + other.dx, dy + other.dy);