MCPcopy
hub / github.com/tdewolff/minify / dist

Function dist

_benchmarks/sample_victory.js:12290–12294  ·  view source on GitHub ↗
(ax, ay, bx, by)

Source from the content-addressed store, hash-verified

12288 }
12289
12290 function dist(ax, ay, bx, by) {
12291 var dx = ax - bx;
12292 var dy = ay - by;
12293 return dx * dx + dy * dy;
12294 }
12295
12296 // return 2d orientation sign if we're confident in it through J. Shewchuk's error bound check
12297 function orientIfSure(px, py, rx, ry, qx, qy) {

Callers 3

sample_victory.jsFile · 0.85
sample_echarts.jsFile · 0.85
buildLabelLinePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…