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

Method identity

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

* @function LevelRenderer.Tool.Matrix.prototype.identity * @description 设置矩阵为单位矩阵。 * @param {(Float32Array|Array. )} out - 单位矩阵。 * @returns {(Float32Array|Array. )} 单位矩阵。

(out)

Source from the content-addressed store, hash-verified

43 * @returns {(Float32Array|Array.<number>)} 单位矩阵。
44 */
45 identity(out) {
46 out[0] = 1;
47 out[1] = 0;
48 out[2] = 0;
49 out[3] = 1;
50 out[4] = 0;
51 out[5] = 0;
52 return out;
53 }
54
55
56 /**

Callers 4

createMethod · 0.95
updateTransformMethod · 0.80
BFunction · 0.80
mapbox-gl.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected