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

Method rotateX

src/math/Matrices/Matrix.js:1146–1148  ·  view source on GitHub ↗

* Rotates the matrix around the X-axis by a given angle. * * This method modifies the current matrix to apply a rotation transformation * around the X-axis. The rotation angle is specified in radians. * * Rotating around the X-axis means that the Y and Z coordinates of the matrix *

(a)

Source from the content-addressed store, hash-verified

1144 * }
1145 */
1146 rotateX(a) {
1147 this.rotate4x4(a, 1, 0, 0);
1148 }
1149
1150 /**
1151 * Rotates the matrix around the Y-axis by a given angle.

Callers 7

sketch.jsFile · 0.45
makeSketchFunction · 0.45
environment.jsFile · 0.45
transform.jsFile · 0.45
p5.Geometry.jsFile · 0.45
p5.RendererGL.jsFile · 0.45
webgl.jsFile · 0.45

Calls 1

rotate4x4Method · 0.95

Tested by

no test coverage detected