I don't think you should compare vectors directly, because their components are floats and can suffer from rounding problems. It's probably safer to compare the components with some rounding applied (or an epsilon margin and greater/less comparisons).