Oritm
Oritm

Reputation: 2121

CGPoint on quadrilateral plotted on converted rectangle

I can't figure out how to do this (i think my math skills are not that great after all..). I have an array of 4 CGPoint objects (A B C D), which is a quadrilateral. On that quadrilateral I have point E.

How can I transform this quadrilateral of 4 CGPoint objects to a rectangle, so I can calculate point E on this rectangle?

I can't use the build in CIPerspectiveCorrection, because I want the raw CGPoint. I try not to use any external libraries, but if I have to, so be it :)

Thanks!

enter image description here

Upvotes: 1

Views: 91

Answers (0)

Related Questions