MCPcopy
hub / github.com/mrdoob/three.js / makeRotationX

Method makeRotationX

src/math/Matrix4.js:872–887  ·  view source on GitHub ↗

* Sets this matrix as a rotational transformation around the X axis by * the given angle. * * @param {number} theta - The rotation in radians. * @return {Matrix4} A reference to this matrix.

( theta )

Source from the content-addressed store, hash-verified

870 * @return {Matrix4} A reference to this matrix.
871 */
872 makeRotationX( theta ) {
873
874 const c = Math.cos( theta ), s = Math.sin( theta );
875
876 this.set(
877
878 1, 0, 0, 0,
879 0, c, - s, 0,
880 0, s, c, 0,
881 0, 0, 0, 1
882
883 );
884
885 return this;
886
887 }
888
889 /**
890 * Sets this matrix as a rotational transformation around the Y axis by

Callers 10

applyTransformMethod · 0.95
Object3D.tests.jsFile · 0.80
Vector3.tests.jsFile · 0.80
Ray.tests.jsFile · 0.80
Matrix4.tests.jsFile · 0.80
Line3.tests.jsFile · 0.80
Matrix3.tests.jsFile · 0.80
Vector4.tests.jsFile · 0.80
rotateXMethod · 0.80

Calls 1

setMethod · 0.95

Tested by

no test coverage detected