MCPcopy Create free account
hub / github.com/collidingScopes/iron-interface / calculateDistance

Function calculateDistance

main.js:766–771  ·  view source on GitHub ↗
(landmark1, landmark2)

Source from the content-addressed store, hash-verified

764}
765
766function calculateDistance(landmark1, landmark2) {
767 if (!landmark1 || !landmark2) return Infinity;
768 const dx = landmark1.x - landmark2.x;
769 const dy = landmark1.y - landmark2.y;
770 return Math.sqrt(dx * dx + dy * dy);
771}

Callers 1

onResultsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected