Skip to content

Commit 1d7b7f7

Browse files
rfm1201mrdoob
authored andcommitted
clockwise full ellipse (mrdoob#9291)
The point returned by getPoint was always reverse clockwise on a full ellipse even when the ellipse is clock wise.
1 parent dc91443 commit 1d7b7f7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/extras/curves/EllipseCurve.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,17 @@ THREE.EllipseCurve.prototype.getPoint = function( t ) {
4646

4747
}
4848

49-
if ( this.aClockwise === true && deltaAngle != twoPi && ! samePoints ) {
49+
if ( this.aClockwise === true && ! samePoints ) {
5050

51-
deltaAngle = deltaAngle - twoPi;
51+
if ( deltaAngle === twoPi ) {
52+
53+
deltaAngle = - twoPi;
54+
55+
} else {
56+
57+
deltaAngle = deltaAngle - twoPi;
58+
59+
}
5260

5361
}
5462

0 commit comments

Comments
 (0)