MCPcopy Index your code
hub / github.com/mrdoob/three.js / setFromMatrixPosition

Method setFromMatrixPosition

src/math/Vector3.js:1056–1066  ·  view source on GitHub ↗

* Sets the vector components to the position elements of the * given transformation matrix. * * @param {Matrix4} m - The 4x4 matrix. * @return {Vector3} A reference to this vector.

( m )

Source from the content-addressed store, hash-verified

1054 * @return {Vector3} A reference to this vector.
1055 */
1056 setFromMatrixPosition( m ) {
1057
1058 const e = m.elements;
1059
1060 this.x = e[ 12 ];
1061 this.y = e[ 13 ];
1062 this.z = e[ 14 ];
1063
1064 return this;
1065
1066 }
1067
1068 /**
1069 * Sets the vector components to the scale elements of the

Callers 15

constructorMethod · 0.95
constructorMethod · 0.95
constructorMethod · 0.95
constructorMethod · 0.95
constructorMethod · 0.95
constructorMethod · 0.95
constructorMethod · 0.95
Vector3.tests.jsFile · 0.45
Vector4.tests.jsFile · 0.45
constructorMethod · 0.45
onBeforeRenderMethod · 0.45
raycastMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected