Przeglądaj źródła

Merge pull request #13121 from WestLangley/dev-quat

Fix Quaternion.conjugate method
Mr.doob 7 lat temu
rodzic
commit
6ba68aa55e
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      src/math/Quaternion.js

+ 3 - 1
src/math/Quaternion.js

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