modified:   src/project_point_on_line.m
        - Added to_endpoint option to convert project points beyond line to closest endpoint
        - Modified to use to_endpoint option