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

Method rotateZ

src/math/Matrices/Matrix.js:1220–1222  ·  view source on GitHub ↗

* Rotates the matrix around the Z-axis by a given angle. * * This method modifies the current matrix to apply a rotation transformation * around the Z-axis. The rotation is performed in a 4x4 matrix context, which * is commonly used in 3D graphics to handle transformations. Rotating arou

(a)

Source from the content-addressed store, hash-verified

1218 * }
1219 */
1220 rotateZ(a) {
1221 this.rotate4x4(a, 0, 0, 1);
1222 }
1223
1224 /**
1225 * Sets the perspective projection matrix.

Callers 2

environment.jsFile · 0.45
transform.jsFile · 0.45

Calls 1

rotate4x4Method · 0.95

Tested by

no test coverage detected