SilverScreen Solid Modeler

point_on_line

point_on_line

Previous topic Next topic  

point_on_line

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

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

point_on_plane