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

Method getNormalMatrix

src/math/Matrix3.js:352–356  ·  view source on GitHub ↗

* Computes the normal matrix which is the inverse transpose of the upper * left 3x3 portion of the given 4x4 matrix. * * @param {Matrix4} matrix4 - The 4x4 matrix. * @return {Matrix3} A reference to this matrix.

( matrix4 )

Source from the content-addressed store, hash-verified

350 * @return {Matrix3} A reference to this matrix.
351 */
352 getNormalMatrix( matrix4 ) {
353
354 return this.setFromMatrix4( matrix4 ).invert().transpose();
355
356 }
357
358 /**
359 * Transposes this matrix into the supplied array, and returns itself unchanged.

Callers 15

constructorMethod · 0.95
mergeObjectMethod · 0.95
parseMethod · 0.95
parseMeshMethod · 0.95
constructorMethod · 0.95
Matrix3.tests.jsFile · 0.80
applyMatrix4Method · 0.80
ModelNode.jsFile · 0.80
renderObjectMethod · 0.80
projectPlanesFunction · 0.80
updateGlobalMethod · 0.80
applyMatrix4Method · 0.80

Calls 3

setFromMatrix4Method · 0.95
transposeMethod · 0.45
invertMethod · 0.45

Tested by

no test coverage detected