MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / dot

Method dot

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

* @function LevelRenderer.Tool.Vector.prototype.dot * @description 向量点乘。 * * @param {Vector2} v1 - 向量 v1。 * @param {Vector2} v2 - 向量 v2。 * @return {number} 向量点乘。

(v1, v2)

Source from the content-addressed store, hash-verified

166 * @return {number} 向量点乘。
167 */
168 dot(v1, v2) {
169 return v1[0] * v2[0] + v1[1] * v2[1];
170 }
171
172 /**
173 * @function LevelRenderer.Tool.Vector.prototype.scale

Callers 2

VectorSpec.jsFile · 0.80
mapbox-gl.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected