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

Method add

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

* @function LevelRenderer.Tool.Vector.prototype.add * @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

74 * @return {Vector2} 结果。
75 */
76 add(out, v1, v2) {
77 out[0] = v1[0] + v2[0];
78 out[1] = v1[1] + v2[1];
79 return out;
80 }
81
82 /**
83 * @function LevelRenderer.Tool.Vector.prototype.scaleAndAdd

Callers 4

addDataMethod · 0.45
addObjectMethod · 0.45
_initThreeRendererMethod · 0.45
SUtil_smoothBezierMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected