We are given either:
- 4 points in Cartesian coordinates
- 4 straight lines in Cartesian space
We assume this 2D Cartesian space is a perspective projection of a 2D space.
I may be wrong but I believe right-angled rectangles impose a constraint such that not every set of 4 such points or lines can fit a 2D perspective mapping of a rotated rectangle.
I'd like to know how to check whether the given inputs can map to a rectangle in 3D space.
If my assumption is wrong, then explaining why is also an acceptable answer.