Skip to content

Commit 7e0ea0b

Browse files
zz85mrdoob
authored andcommitted
Remove Number.EPSILON from calculation for area of Triangle (mrdoob#9844)
- Thanks @Mugen87!
1 parent 8caf9c5 commit 7e0ea0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extras/ShapeUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ShapeUtils = {
5454
cx = contour[ verts[ w ] ].x;
5555
cy = contour[ verts[ w ] ].y;
5656

57-
if ( Number.EPSILON > ( ( ( bx - ax ) * ( cy - ay ) ) - ( ( by - ay ) * ( cx - ax ) ) ) ) return false;
57+
if ( ( bx - ax ) * ( cy - ay ) - ( by - ay ) * ( cx - ax ) <= 0 ) return false;
5858

5959
var aX, aY, bX, bY, cX, cY;
6060
var apx, apy, bpx, bpy, cpx, cpy;

0 commit comments

Comments
 (0)