operator - method

ExpressivePoint operator -(
  1. ExpressivePoint operand
)

Binary subtraction operator.

Returns a Point whose x value is the left-hand-side operand's x minus the right-hand-side operand's x and whose y value is the left-hand-side operand's y minus the right-hand-side operand's y.

Implementation

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