* Matrix4: added preMultiply method * Matri4: preMultiply -> premultiply
@@ -94,7 +94,12 @@
<h3>[method:Matrix4 multiply]( [page:Matrix4 m] ) [page:Matrix4 this]</h3>
<div>
- Multiplies this matrix by *m*.
+ Post-multiplies this matrix by *m*.
+ </div>
+
+ <h3>[method:Matrix4 premultiply]( [page:Matrix4 m] ) [page:Matrix4 this]</h3>
+ <div>
+ Pre-multiplies this matrix by *m*.
</div>
<h3>[method:Matrix4 multiplyMatrices]( [page:Matrix4 a], [page:Matrix4 b] ) [page:Matrix4 this]</h3>
@@ -365,6 +365,12 @@ THREE.Matrix4.prototype = {
},
+ premultiply: function ( m ) {
+ return this.multiplyMatrices( m, this );
+ },
multiplyMatrices: function ( a, b ) {
var ae = a.elements;