Quote:
|
Originally Posted by splitterdevildoll
Part of my program involves the user entering four 3-d (x,y,z) coordinates from a irregular surface with four corners in order to find the slope of each side; this would straighten out the sides. However, how do I find the new points from the slope? This is a translation problem.
I'd appreciate any comments/suggestions.
Thanks.
|
slope = (y1 - y2) / (x1 - x2) -> slope on the line...
but on 3D we have to see where is the point connected to, and then find the slop of the line. (just more complex than 2D)
i.e:
line AB is located at; A(-3, 3, 0), B(3, 3, 1)
slope = (3 - 3) / (- 3 - 3) = 0/-6 is 0 ...
the Z axis is just helping to zoom in and zoom out in when the object is render.
Just find each slope for each lines. I hope thats help.
Please corrected me if I am wrong. Thanks,