(ax, ay, bx, by, cx, cy)
| 6996 | } |
| 6997 | |
| 6998 | function orient2d(ax, ay, bx, by, cx, cy) { |
| 6999 | const detleft = (ay - cy) * (bx - cx); |
| 7000 | const detright = (ax - cx) * (by - cy); |
| 7001 | const det = detleft - detright; |
| 7002 | |
| 7003 | const detsum = Math.abs(detleft + detright); |
| 7004 | if (Math.abs(det) >= ccwerrboundA * detsum) return det; |
| 7005 | |
| 7006 | return -orient2dadapt(ax, ay, bx, by, cx, cy, detsum); |
| 7007 | } |
| 7008 | |
| 7009 | const EPSILON = Math.pow(2, -52); |
| 7010 | const EDGE_STACK = new Uint32Array(512); |