|
||
int point_on_line ( SS_XYZ *p1, SS_XYZ *p2, SS_XYZ *p3 )
SS_XYZ *p1; // address of a 3D point SS_XYZ *p2; // address of a 3D point SS_XYZ *p3; // address of a 3D point
|
|
|
Synopsis |
#include "silver.h"
The point_on_line function determines whether or not point at p1 lies on the line segment defined by the points at p2-p3 .
|
|
Parameters |
p1 , p2 and p3 are all addresses of 3D points.
|
|
Return Value |
point_on_line returns 1 if the point lies on the line segment, and 0 if not.
|
|
See Also |
|
|
|
|