Translation of the point along X axis or Y axis