@return 1 if q1 is nearer to q than q2, -1 if q2 is nearer than q1, 0 if they have the same distance.
See Implementation
@return 1 if q1 is nearer to q than q2, -1 if q2 is nearer than q1, 0 if they have the same distance.