build/modelscript.umd.js
function(obj) {
                var P = this.pointClosestTo(obj);
                return (P === null) ? null : P.distanceFrom(obj);
              }
function(obj) {
                var P = this.pointClosestTo(obj);
                return (P === null) ? null : P.distanceFrom(obj);
              }
function ( obj ) { var P = this . pointClosestTo ( obj ) ; return ( P === null ) ? null : P . distanceFrom ( obj ) ; }
Returns the distance between the argument and the line segment's closest point to the argument
Returns the distance between the argument and the line segment s closest point to the argument