foundation::square_distance_point_segment() now properly handles zero-length segments.
foundation::square_distance_point_segment() now properly handles zero-length segments.

this fixes assertions in the world space and screen space wireframe modes of the diagnostic surface shader.

Vertexwahn/appleseed,Biart95/appleseed,docwhite/appleseed,est77/appleseed,appleseedhq/appleseed,est77/appleseed,dictoon/appleseed,aytekaman/appleseed,aytekaman/appleseed,Biart95/appleseed,dictoon/appleseed,glebmish/appleseed,glebmish/appleseed,glebmish/appleseed,Aakash1312/appleseed,Aakash1312/appleseed,luisbarrancos/appleseed,pjessesco/appleseed,aytekaman/appleseed,aiivashchenko/appleseed,glebmish/appleseed,aiivashchenko/appleseed,aiivashchenko/appleseed,Vertexwahn/appleseed,gospodnetic/appleseed,Aakash1312/appleseed,aiivashchenko/appleseed,docwhite/appleseed,est77/appleseed,gospodnetic/appleseed,gospodnetic/appleseed,est77/appleseed,luisbarrancos/appleseed,glebmish/appleseed,luisbarrancos/appleseed,pjessesco/appleseed,appleseedhq/appleseed,pjessesco/appleseed,docwhite/appleseed,luisbarrancos/appleseed,dictoon/appleseed,appleseedhq/appleseed,aiivashchenko/appleseed,Biart95/appleseed,Vertexwahn/appleseed,luisbarrancos/appleseed,appleseedhq/appleseed,Vertexwahn/appleseed,dictoon/appleseed,aytekaman/appleseed,aytekaman/appleseed,Vertexwahn/appleseed,gospodnetic/appleseed,appleseedhq/appleseed,est77/appleseed,pjessesco/appleseed,gospodnetic/appleseed,docwhite/appleseed,Aakash1312/appleseed,docwhite/appleseed,Biart95/appleseed,dictoon/appleseed,pjessesco/appleseed,Biart95/appleseed,Aakash1312/appleseed