negate method

void negate()

Implementation

void negate() {
  x = -x;
  y = -y;
}