dircos (<point>)
point
The normalized form of a 3-D vector.
<point>
The point to be normalized. If an answer cannot be computed, then the value (1,0,0) is returned and funcerr
is set to -1.
Normalize a point:
point v = dircos((100,100,0)
v will now contain (0.707,0.707,0).
Functions: |
adir3d(point) |