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

Method sub

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

* @function LevelRenderer.Tool.Vector.prototype.sub * @description 向量相减。 * @param {Vector2} out - 基础向量。 * @param {Vector2} v1 - 向量 v1。 * @param {Vector2} v2 - 向量 v2。 * @return {Vector2} 结果。

(out, v1, v2)

Source from the content-addressed store, hash-verified

103 * @return {Vector2} 结果。
104 */
105 sub(out, v1, v2) {
106 out[0] = v1[0] - v2[0];
107 out[1] = v1[1] - v2[1];
108 return out;
109 }
110
111 /**
112 * @function LevelRenderer.Tool.Vector.prototype.len

Callers 10

VectorSpec.jsFile · 0.80
toThreeShapeMethod · 0.80
constructorMethod · 0.80
SUtil_smoothBezierMethod · 0.80
YaFunction · 0.80
roFunction · 0.80
mapbox-gl.jsFile · 0.80
EsFunction · 0.80
neFunction · 0.80
seFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected