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

Method len

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

* @function LevelRenderer.Tool.Vector.prototype.len * @description 向量长度。 * @param {Vector2} v - 向量。 * @return {number} 向量长度。

(v)

Source from the content-addressed store, hash-verified

115 * @return {number} 向量长度。
116 */
117 len(v) {
118 return Math.sqrt(this.lenSquare(v));
119 }
120
121 /**
122 * @function LevelRenderer.Tool.Vector.prototype.lenSquare

Callers 15

normalizeMethod · 0.95
lengthMethod · 0.95
VectorSpec.jsFile · 0.80
ioFunction · 0.80
NaFunction · 0.80
ioFunction · 0.80

Calls 1

lenSquareMethod · 0.95

Tested by

no test coverage detected