Function: dir3d

Syntax

dir3d (<point1> ,<point2>)

Type

point

Returns

The 3-D direction between two 3-D points.

Parameters

If an answer cannot be computed, then the value (1,0,0) is returned and funcerr is set to -1.

Examples

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).

See Also

Functions:

adir3d(point),dircos(point)