You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let segment_distance_to_point = segment.euclidean_distance(p);
appears to only be used for "shortest seen so far", that could be the cheaper non-sqrt'ed distance.
I believe the other values will all need to be sqrt'ed - but given there is one potential improvement in there, maybe worth a double check from the more knowledgable guys here.