CodingMeSwiftly / UIBezierPath-Superpowers

MIT License
78 stars 16 forks source link

Zero length path elements not "selectable" with `mx_perpendicularPoint(for:)` #2

Closed CodingMeSwiftly closed 6 years ago

CodingMeSwiftly commented 6 years ago

calculatePointLookupTable() should never yield an empty array for a path element. However, this can currently happen when the element has zero (or in fact a very small) length.

See https://github.com/ImJCabus/UIBezierPath-Superpowers/issues/1