alexbol99 / flatten-js

Javascript library for 2d geometry
MIT License
560 stars 58 forks source link

Parameter order for addVertex is incorrect #70

Closed garma83 closed 3 years ago

garma83 commented 3 years ago

In the documentation, the function addVertex of polygon is defined as

addVertex(edge,pt)

In code, the actual order of parameters is:

addVertex(pt, edge)

alexbol99 commented 3 years ago

Fixed in v1.2.18 Thank you, @erikpols , for collaboration