A rotation doesn't change the length of anything.
The length of the rotated line segment would be the same as the original line segment.
Because both Y values are the same, you just need to calculate the length of the X values.
5 to 0 = 5
0 to -6 = 6
Total length = 5 +6 = 11 units long.