Closed gavrix closed 8 years ago
@snown can you do a code review?
I will take a look
I'll be merging this very soon and publish to cocoapods.
Work has been extremely busy lately, but I am hopeful that I will have time to take a look in the next 24 hours. Sorry for the delay.
This looks good. It's a pretty simple change, but it's smart.
Thanks for doing the code review. I'll publish this version tomorrow.
Published as version 1.2.3. Suitable tag version for this cute fix. Thanks @gavrix
Thanks you guys. Glad to help!
I noticed when trying to correct perspective transform from 4 arbitrary points, this routine often returns
NaN
thus destroying all further geometry calculations. With the correction proposed I was able to make it work ideally on all cases for me. This may also fix issue people refer to here