public void normalize() {
        if (x != 0.0 || y != 0.0 || z != 0.0) {
            double modulo = modulo();
            x /= modulo;
            y /= modulo;
            z /= modulo;
        }
    }