quaternion comparison with dot product