operator + method

ExpressivePoint operator +(
  1. ExpressivePoint operand
)

Binary addition operator.

Returns a Point whose x value is the sum of the x values of the two operands, and whose y value is the sum of the y values of the two operands.

Implementation

ExpressivePoint operator +(ExpressivePoint operand) =>
    ExpressivePoint(x + operand.x, y + operand.y);