提交 1d7b7f74 编写于 作者: R rfm1201 提交者: Mr.doob

clockwise full ellipse (#9291)

The point returned by getPoint was always reverse clockwise on a full
ellipse even when the ellipse is clock wise.
上级 dc91443e
......@@ -46,12 +46,20 @@ THREE.EllipseCurve.prototype.getPoint = function( t ) {
}
if ( this.aClockwise === true && deltaAngle != twoPi && ! samePoints ) {
if ( this.aClockwise === true && ! samePoints ) {
if ( deltaAngle === twoPi ) {
deltaAngle = - twoPi;
} else {
deltaAngle = deltaAngle - twoPi;
}
}
var angle = this.aStartAngle + t * deltaAngle;
var x = this.aX + this.xRadius * Math.cos( angle );
var y = this.aY + this.yRadius * Math.sin( angle );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册