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

Method scale

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

* @function LevelRenderer.Tool.Matrix.prototype.scale * @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

141 * @returns {(Float32Array|Array.<number>)} 结果矩阵。
142 */
143 scale(out, a, v) {
144 var vx = v[0];
145 var vy = v[1];
146 out[0] = a[0] * vx;
147 out[1] = a[1] * vy;
148 out[2] = a[2] * vx;
149 out[3] = a[3] * vy;
150 out[4] = a[4] * vx;
151 out[5] = a[5] * vy;
152 return out;
153 }
154
155 /**
156 * @function LevelRenderer.Tool.Matrix.prototype.invert

Callers 8

_createCanvasMethod · 0.45
toDataURLMethod · 0.45
initContextMethod · 0.45
createBackBufferMethod · 0.45
resizeMethod · 0.45
updateTransformMethod · 0.45
SUtil_smoothBezierMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected