소스 검색

normalize in Quaternion.slerp

Mathieu Brédif 7 년 전
부모
커밋
dbe07203e6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/math/Quaternion.js

+ 1 - 1
src/math/Quaternion.js

@@ -543,7 +543,7 @@ Object.assign( Quaternion.prototype, {
 			this._y = s * y + t * this._y;
 			this._z = s * z + t * this._z;
 
-			return this;
+			return this.normalize();
 
 		}