krzysztofzablocki / LineDrawing

Beatiful and fast smooth line drawing algorithm for iOS - as seen in Foldify.
http://twitter.com/merowing_
Other
1.29k stars 213 forks source link

Missing first and last point from calculateSmoothLinePoints #28

Open BrettThePark opened 9 years ago

BrettThePark commented 9 years ago

I was using your code to draw bezier lines and I notice an issue. The calculateSmoothLinePoints method is not using the very first point or the very last, it only uses the midpoint. This makes sense when continually drawing, but when drawing (for example) only three points over a long span, it misses a large part of the line.