-
-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Description
Hello,
martinez.union([[ [0,0],[10,0],[10,10],[0,10] ]], [[ [9,10],[21,9],[21,21],[9,21] ]])
produces
[[[ [0,0],[10,0],[10, 9.916666666666668],[21,9],[21,21],[9,21],[0,10] ]]]
Seems like should be
[[[ [0,0],[10,0],[10, 9.916666666666668],[21,9],[21,21],[9,21], [9,10] [0,10] ]]]
[9,10] point is missing
This is the result produced by polygon-clipping (https://github.com/mfogel/polygon-clipping) project:
[[ [ [ 0, 0 ],
[ 10, 0 ],
[ 10, 9.916666666666666 ],
[ 21, 9 ],
[ 21, 21 ],
[ 9, 21 ],
[ 9, 10 ],
[ 0, 10 ],
[ 0, 0 ] ] ]
]