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

Method dist

src/common/overlay/levelRenderer/Vector.js:342–344  ·  view source on GitHub ↗

* @function LevelRenderer.Tool.Vector.prototype.dist * @description 计算向量间距离。 * * @param {Vector2} v1 - 向量 v1。 * @param {Vector2} v2 - 向量 v2。 * @return {number} 向量间距离。

(v1, v2)

Source from the content-addressed store, hash-verified

340 * @return {number} 向量间距离。
341 */
342 dist(v1, v2) {
343 return this.distance(v1, v2);
344 }
345
346 /**
347 * @function LevelRenderer.Tool.Vector.prototype.distSquare

Callers 8

VectorSpec.jsFile · 0.80
mapbox-gl.jsFile · 0.80
UuFunction · 0.80
juFunction · 0.80
KuFunction · 0.80
GuFunction · 0.80
llFunction · 0.80
seFunction · 0.80

Calls 1

distanceMethod · 0.95

Tested by

no test coverage detected