MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / getDistance

Function getDistance

libs/mapv/mapv.js:4086–4088  ·  view source on GitHub ↗
(coordinateA, coordinateB)

Source from the content-addressed store, hash-verified

4084};
4085
4086function getDistance(coordinateA, coordinateB) {
4087 return Math.sqrt(Math.pow(coordinateA[0] - coordinateB[0], 2) + Math.pow(coordinateA[1] - coordinateB[1], 2));
4088}
4089
4090/**
4091 * @author Mofei Zhu<mapv@zhuwenlong.com>

Callers 1

mapv.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected