SilverScreen Solid Modeler

intersect_line_plane

intersect_line_plane

Previous topic Next topic  

intersect_line_plane

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

int intersect_line_plane ( SS_XYZ *p1, SS_XYZ *p2, SS_XYZ *r, SS_COEF *coef )

 

SS_XYZ  *p1;               // startpoint of line

SS_XYZ  *p2;               // endpoint of line

SS_XYZ  *r;                // address of 3D point to receive result

SS_COEF *coef;             // address of plane structure

 

 




Synopsis

#include "silver.h"

 

The intersect_line_plane function determines if the line through p1 and p2 intersects the plane specified by coef.

 

 

Parameters

p1 , p2 and r are all addresses of 3D points. coef is the address of a plane, represented by an SS_COEF structure (as defined in silver.h).

 

 

Return Value

intersect_line_plane returns 0 if a line through p1 and p2 does not intersect the plane defined by coef ; otherwise intersect_line_plane returns 1, and r is set to the point of intersection of the line and plane.

 

 

See Also

intersect , intersect_3_plane