I have the projection of a square on a plane. I know it's four corners' coordinates on said plane. (This is from a picture of a square taken by a camera at an unknown relation to the square.)
I now need to be able to locate any point on the square (in square coordinates) on the plane. (I assume that the center of the square (point 0.5/0.5) is "located" on the plane at the intersection of the diagonals, but I need to be able to locate any arbitrary point.)
I first thought of calculating the percent of the distance on the sides and then finding their intersection. For example, to find point 0.2,0.6 I would find the 0.2 point on the top and bottom sides, create a line between them, and do the same for point 0.6 on the left and right sides. Then find the intersection of these 2 lines. But this would only be an approximation, because the closer side of the square to the camera would have more square-distance per projection-distance.
So how do I achieve the correct calculation?