Explorar o código

Fix conjugate method. see #13023.

WestLangley %!s(int64=7) %!d(string=hai) anos
pai
achega
38aea0e4fa
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/math/Quaternion.js

+ 3 - 1
src/math/Quaternion.js

@@ -395,7 +395,9 @@ Object.assign( Quaternion.prototype, {
 
 	inverse: function () {
 
-		return this.conjugate().normalize();
+		// quaternion is assumed to have unit length
+
+		return this.conjugate();
 
 	},