EmbroidePy / pyembroidery

pyembroidery library for reading and writing a variety of embroidery formats.
MIT License
185 stars 34 forks source link

Import complex numbers are coordinate data. #9

Closed tatarize closed 5 years ago

tatarize commented 5 years ago

I had generally assumed in several places that coordinate data would be c[0], c[1] or c.x c.y but it turns out some projects like mathandy/svgpathtools use an interesting trick where they call x the real part and y is the imag part of a complex number. Using the native x, i coordinate field within complex numbers as x,y.