isZero method

bool isZero()

(en)Return true if parameter is all zero, otherwise false.

(ja)全てのパラメータが0であればtrue、それ以外はfalseを返します。

Implementation

bool isZero() {
  return x == 0 && y == 0 && z == 0;
}