dir3d (<point1> ,<point2>)
point
The 3-D direction between two 3-D points.
<point1>
The start point.
<point2>
The finish point.
If an answer cannot be computed, then the value (1,0,0) is returned and funcerr is set to -1.
Compute the direction between 2 points:
point p1=(100,0,0), p2=(100,200,0) point v=dir3d(p1,p2)
v will now have the value (0,1,0).
Functions: |