I've got an interesting math problem that I'm struggling to solve. It's a little complicated to explain, but essentially it is this:
Given a point P that is contained by the convex hull of the squares A & B (A & B do not overlap).
A line intersects A at point PA, B at point PB, and point P; such that the ratio [distance from PA to P] : [distance P to PB] must be as large as possible (PA to P being larger).
Calculate points PA and PB.
I'm not really sure how to calculate this, but if anyone could point me in the right direction I would be very grateful!
Thanks in advance!