By measuring between key places in the aircraft, engineers can determine if it is bent or not.
Just winding you up! It makes sense really, I just think the 'key places' must be somewhere on the fuesalage rather than 18 inches apart laterally on the roof of the flight deck!