MCPcopy Index your code
hub / github.com/Macuyiko/minecraft-python / calcDistance

Function calcDistance

ServerEditorWeb/ace/ace.js:2551–2553  ·  view source on GitHub ↗
(ax, ay, bx, by)

Source from the content-addressed store, hash-verified

2549exports.DefaultHandlers = DefaultHandlers;
2550
2551function calcDistance(ax, ay, bx, by) {
2552 return Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));
2553}
2554
2555function calcRangeOrientation(range, cursor) {
2556 if (range.start.row == range.end.row)

Callers 2

ace.jsFile · 0.85
scrollCursorIntoViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected