Check if a vector is almost zero
bool almostZero([double precision = 1e-6]) { if (x.abs() > precision || y.abs() > precision || z.abs() > precision) { return false; } return true; }