The reflectInY function changes the sign of the x coordinate