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

Method applyMatrix4

src/core/Object3D.js:448–456  ·  view source on GitHub ↗

* Applies the given transformation matrix to the object and updates the object's position, * rotation and scale. * * @param {Matrix4} matrix - The transformation matrix.

( matrix )

Source from the content-addressed store, hash-verified

446 * @param {Matrix4} matrix - The transformation matrix.
447 */
448 applyMatrix4( matrix ) {
449
450 if ( this.matrixAutoUpdate ) this.updateMatrix();
451
452 this.matrix.premultiply( matrix );
453
454 this.matrix.decompose( this.position, this.quaternion, this.scale );
455
456 }
457
458 /**
459 * Applies a rotation represented by given the quaternion to the 3D object.

Callers 6

_createGeometryMethod · 0.95
setFromXRControllerMethod · 0.45
localToWorldMethod · 0.45
worldToLocalMethod · 0.45
attachMethod · 0.45
getViewBoundsMethod · 0.45

Calls 3

updateMatrixMethod · 0.95
decomposeMethod · 0.80
premultiplyMethod · 0.45

Tested by

no test coverage detected