def section_end_distance(section):
pts = section.points<EOL>return <NUM_LIT:0> if len(pts) < <NUM_LIT:2> else mm.point_dist(pts[-<NUM_LIT:1>], pts[<NUM_LIT:0>])<EOL>
End to end distance of a section

    The end to end distance of a section is defined as
    the euclidian distnce between its end points.

    If the section contains less than 2 points, the value 0 is returned.