MCPcopy
hub / github.com/processing/p5.js / applyMatrix

Method applyMatrix

src/core/p5.Renderer3D.js:1244–1269  ·  view source on GitHub ↗
(a, b, c, d, e, f)

Source from the content-addressed store, hash-verified

1242 }
1243
1244 applyMatrix(a, b, c, d, e, f) {
1245 this.states.setValue("uModelMatrix", this.states.uModelMatrix.clone());
1246 if (arguments.length === 16) {
1247 // this.states.uModelMatrix.apply(arguments);
1248 Matrix.prototype.apply.apply(this.states.uModelMatrix, arguments);
1249 } else {
1250 this.states.uModelMatrix.apply([
1251 a,
1252 b,
1253 0,
1254 0,
1255 c,
1256 d,
1257 0,
1258 0,
1259 0,
1260 0,
1261 1,
1262 0,
1263 e,
1264 f,
1265 0,
1266 1,
1267 ]);
1268 }
1269 }
1270
1271 /**
1272 * [translate description]

Callers 1

transformFunction · 0.45

Calls 3

setValueMethod · 0.45
cloneMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected