Projecting a 3d point onto a plane

Hi

i am working on information visualization, which use triangle projection to do it, that get n points from a higher dimensional space to a 2 dimensional space. i need to project points from an object and plot the n points in 2D. and i am going to use JAVA to write it.

First, need to select a point to project and put it on the origin, and then put the 2nd point the right distance away from the 1st point.

Second, calculate the 3rd point using the 1st and 2nd points, which form a triangle. For the remaining points, i need to pick 2 projected points and form a triangle with the remaining points.

can anyone please help? i really don't know how to start it.

Thank you