Length and Midpoint of Segments