I have a triangle in 3d space. The x and y components of its vertices make a 2d right isoceles triangle. I am projecting it through a pinhole onto a plane. The projected triangles on the plane are now 2d triangles.
I have an algorithm to draw every pixel of a 2d triangle, what I'm wondering is how to find out the corresponding x and y coordinates of the original 3d triangle for each pixel of the 2d triangle.
Thanks for reading this. I only learned high school algebra and geometry, so I won't understand university-level math.
(edited)