setZero method

void setZero()

Set all components of the vector to zero.

Implementation

void setZero() {
  x = y = z = 0;
}