* Detect whether two edges are equal. * Note that when constructing the convex hull, two same edges can only * be of the negative direction.
( ea, eb )
| 32217 | * be of the negative direction. |
| 32218 | */ |
| 32219 | function equalEdge( ea, eb ) { |
| 32220 | |
| 32221 | return ea[ 0 ] === eb[ 1 ] && ea[ 1 ] === eb[ 0 ]; |
| 32222 | |
| 32223 | } |
| 32224 | |
| 32225 | /** |
| 32226 | * Create a random offset between -1e-6 and 1e-6. |