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