Explorar el Código

Merge pull request #13121 from WestLangley/dev-quat

Fix Quaternion.conjugate method
Mr.doob hace 7 años
padre
commit
6ba68aa55e
Se han modificado 1 ficheros con 3 adiciones y 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();
 
 	},