1

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

Oritm
  • 2,113
  • 2
  • 25
  • 40

0 Answers0