negate method

void negate()

Negate all components.

Implementation

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