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

Method translate

src/common/overlay/levelRenderer/Matrix.js:98–106  ·  view source on GitHub ↗

* @function LevelRenderer.Tool.Matrix.prototype.mul * @description 平移变换。 * @param {(Float32Array|Array. )} out - 单位矩阵。 * @param {(Float32Array|Array. )} a - 矩阵。 * @param {(Float32Array|Array. )} v- 平移参数。 * @returns {(Float32Array|Array. )} 结果矩阵。

(out, a, v)

Source from the content-addressed store, hash-verified

96 * @returns {(Float32Array|Array.<number>)} 结果矩阵。
97 */
98 translate(out, a, v) {
99 out[0] = a[0];
100 out[1] = a[1];
101 out[2] = a[2];
102 out[3] = a[3];
103 out[4] = a[4] + v[0];
104 out[5] = a[5] + v[1];
105 return out;
106 }
107
108 /**
109 * @function LevelRenderer.Tool.Matrix.prototype.rotate

Callers 15

MatrixSpec.jsFile · 0.80
UnicodeMarker.jsFile · 0.80
getChangedImageUrlFunction · 0.80
setCenterMethod · 0.80
brushMethod · 0.80
adjustCanvasSizeMethod · 0.80
updateTransformMethod · 0.80
getLabelPxLocationMethod · 0.80
_renderMethod · 0.80
_renderMethod · 0.80
BFunction · 0.80
mapbox-gl.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected