MCPcopy Create free account
hub / github.com/melonjs/melonJS / setTransform

Method setTransform

packages/melonjs/src/math/matrix3d.ts:97–118  ·  view source on GitHub ↗

* Set the matrix to the specified value. * @param values - The matrix components. * @returns Reference to this object for method chaining

(...values: SixteenNumbers)

Source from the content-addressed store, hash-verified

95 * @returns Reference to this object for method chaining
96 */
97 setTransform(...values: SixteenNumbers) {
98 const a = this.val;
99
100 a[0] = values[0];
101 a[1] = values[1];
102 a[2] = values[2];
103 a[3] = values[3];
104 a[4] = values[4];
105 a[5] = values[5];
106 a[6] = values[6];
107 a[7] = values[7];
108 a[8] = values[8];
109 a[9] = values[9];
110 a[10] = values[10];
111 a[11] = values[11];
112 a[12] = values[12];
113 a[13] = values[13];
114 a[14] = values[14];
115 a[15] = values[15];
116
117 return this;
118 }
119
120 /**
121 * Copies over the values from another me.Matrix3d.

Callers 12

identityMethod · 0.95
fromMat2dMethod · 0.95
buildReferenceFunction · 0.95
buildClosedFormFunction · 0.95
updateMethod · 0.45
resetFunction · 0.45
setMask.spec.jsFile · 0.45
paintWithMasksFunction · 0.45
mat3d.spec.tsFile · 0.45
mat2d.spec.tsFile · 0.45
setPositionMethod · 0.45
setAngleMethod · 0.45

Calls

no outgoing calls

Tested by 3

buildReferenceFunction · 0.76
buildClosedFormFunction · 0.76
paintWithMasksFunction · 0.36