File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -107,9 +107,14 @@ <h3>[method:Quaternion normalize]() [page:Quaternion this]</h3>
107107 Normalizes this quaternion.
108108 </ div >
109109
110- < h3 > [method:Quaternion multiply]( [page:Quaternion b ] ) [page:Quaternion this]</ h3 >
110+ < h3 > [method:Quaternion multiply]( [page:Quaternion q ] ) [page:Quaternion this]</ h3 >
111111 < div >
112- Multiplies this quaternion by *b*.
112+ Multiplies this quaternion by *q*.
113+ </ div >
114+
115+ < h3 > [method:Quaternion premultiply]( [page:Quaternion q] ) [page:Quaternion this]</ h3 >
116+ < div >
117+ Pre-multiplies this quaternion by *q*.
113118 </ div >
114119
115120 < h3 > [method:Quaternion multiplyQuaternions]( [page:Quaternion a], [page:Quaternion b] ) [page:Quaternion this]</ h3 >
Original file line number Diff line number Diff line change @@ -375,6 +375,12 @@ THREE.Quaternion.prototype = {
375375
376376 } ,
377377
378+ premultiply : function ( q ) {
379+
380+ return this . multiplyQuaternions ( q , this ) ;
381+
382+ } ,
383+
378384 multiplyQuaternions : function ( a , b ) {
379385
380386 // from http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/code/index.htm
You can’t perform that action at this time.
0 commit comments