If you only want to compare positions on the X axis for some reason, then it's just (my.x < your.x). You don't need vectors for that.