Line segment EF is shown on the coordinate grid:

E'F' is equal in length to EF.
Just because E'F' rotated doesn't mean the length changed at all.