// as getDirection returns vectors whose length is 1
//- we don't need to actually calculate the angle itself,
// because if angle a > angle b, then cos a < cos b
// (in [0°, 180°])
double comparison = d1.dot(X_UNIT) - d2.dot(X_UNIT);
if (comparison == 0) {
return 0;
}