提交 99b7e531 编写于 作者: H Henri Astre

Fix coding style

上级 1965a19f
......@@ -399,17 +399,9 @@ THREE.Quaternion.prototype = {
slerp: function ( qb, t ) {
if (t === 0) {
if (t === 0) return this;
return this;
}
else if (t === 1) {
return this.copy( qb );
}
if (t === 1) return this.copy( qb );
var x = this._x, y = this._y, z = this._z, w = this._w;
......
......@@ -214,6 +214,6 @@ test( "slerp", function() {
var a = new THREE.Quaternion( 0.675341, 0.408783, 0.328567, 0.518512 );
var b = new THREE.Quaternion( 0.660279, 0.436474, 0.35119, 0.500187 );
ok( a.slerp(b, 0).equals(a), "Passed!" );
ok( a.slerp(b, 1).equals(b), "Passed!" );
ok( a.slerp( b, 0 ).equals( a ), "Passed!" );
ok( a.slerp( b, 1 ).equals( b ), "Passed!" );
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册