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

Method setRotationFromQuaternion

src/core/Object3D.js:516–522  ·  view source on GitHub ↗

* Sets the given rotation represented as a Quaternion to the 3D object. * * @param {Quaternion} q - The Quaternion

( q )

Source from the content-addressed store, hash-verified

514 * @param {Quaternion} q - The Quaternion
515 */
516 setRotationFromQuaternion( q ) {
517
518 // assumes q is normalized
519
520 this.quaternion.copy( q );
521
522 }
523
524 /**
525 * Rotates the 3D object along an axis in local space.

Callers 1

Object3D.tests.jsFile · 0.80

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected