import{isPoint as t}from"./is-point.js";import{isPoint3D as r}from"./is-point-3d.js";import{isNum as o}from"./inc.js";var i=function(t,r){return Math.abs(t-r)};function n(n,p){if(o(n)&&o(p))return i(n,p);if(t(n)&&t(p)){var a=i(n.x,p.x),f=i(n.y,p.y),s=r(n)&&r(p)?i(n.z,p.z):0;return Math.sqrt(Math.pow(a,2)+Math.pow(f,2)+Math.pow(s,2))}}export{n as distance};
//# sourceMappingURL=distance.js.map
