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

Method applyMatrix3

src/math/Vector3.js:417–428  ·  view source on GitHub ↗

* Multiplies this vector with the given 3x3 matrix. * * @param {Matrix3} m - The 3x3 matrix. * @return {Vector3} A reference to this vector.

( m )

Source from the content-addressed store, hash-verified

415 * @return {Vector3} A reference to this vector.
416 */
417 applyMatrix3( m ) {
418
419 const x = this.x, y = this.y, z = this.z;
420 const e = m.elements;
421
422 this.x = e[ 0 ] * x + e[ 3 ] * y + e[ 6 ] * z;
423 this.y = e[ 1 ] * x + e[ 4 ] * y + e[ 7 ] * z;
424 this.z = e[ 2 ] * x + e[ 5 ] * y + e[ 8 ] * z;
425
426 return this;
427
428 }
429
430 /**
431 * Multiplies this vector by the given normal matrix and normalizes

Callers 4

constructorMethod · 0.95
applyNormalMatrixMethod · 0.95
parseMethod · 0.95
transfEllipseGenericMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected