Page 1 of 1

nxm Quadrilateral perspective grid

Posted: Tue Jun 04, 2019 11:27 am
by abhaybhuva
Problem statement: you are given one Quadrilateral - Trapezium, arrange the nxm quadrilateral inside Quadrilateral - Trapezium.

nxm Quadrilateral represent the perspective grid.

figure1:
https://imgur.com/FHribtB

figure2:
https://imgur.com/zlro2yR


Input: 4 points (XY coordinate) of the Quadrilateral - Trapezium.
Output: NxMx4 points (XY coordinate) of all NxM grid of quadrilateral.
:D