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

Method localToWorld

src/core/Object3D.js:663–669  ·  view source on GitHub ↗

* Converts the given vector from this 3D object's local space to world space. * * @param {Vector3} vector - The vector to convert. * @return {Vector3} The converted vector.

( vector )

Source from the content-addressed store, hash-verified

661 * @return {Vector3} The converted vector.
662 */
663 localToWorld( vector ) {
664
665 this.updateWorldMatrix( true, false );
666
667 return vector.applyMatrix4( this.matrixWorld );
668
669 }
670
671 /**
672 * Converts the given vector from this 3D object's world space to local space.

Callers 1

Object3D.tests.jsFile · 0.80

Calls 2

updateWorldMatrixMethod · 0.95
applyMatrix4Method · 0.45

Tested by

no test coverage detected