Given a set $A$ of points in $\Bbb R^3$ enclosed in a sphere of radius $R1$, we put a point-light outside that enclosing sphere at a distance $D > 0$ from the sphere's surface (so that we are sure all the points can be projected on a plane).
Those points will project a shadow on a sheet, effectively creating a set $B$ of points in $\Bbb R^2$.
What I want to achieve is telling if the set $B$ of points in $\Bbb R^2$ is a projetion of the $A$ of points in $\Bbb R^3$.
And if yes:
- find the transformation matrix that applied to all points of $A$, get $B$.
- position of the point light in $\Bbb R^3$ (well if you have the transformation matrix you already probably have it, I just specified it beause I want to make clear that light position is unkown).
Some error is acceptable (in example all points of A can be offsetted by a small radius).
Note. the set A can be rotated and translated (like a solid object), and since we have a point light, the effective shadow of points is subject to a projective transform.
$A$ and $B$ are known. It is allowed to append to all elements of A a fourth element "1". (Because If I resemble correctly transformation matrices are 4x4 and to operate on "points" and not "directions" we must have the fourth element be 1 instead of 0: in this case the matrix would be 4x2 then I guess, or a 4x4 matrix which sets to 0 the 3rd and 4th element of the output whatever you find more comfortable).