|
||
BOOLEAN intersect_2_plane ( SS_COEF *coef1, SS_COEF *coef2, SS_XYZ *pt, SS_XYZ *dir )
SS_COEF *coef1; // A pointer to an SS_COEF data type SS_COEF *coef2; // A pointer to an SS_COEF data type SS_XYZ *pt; // A pointer to an SS_XYZ data type SS_XYZ *dir; // A pointer to an SS_XYZ data type
|
|
|
Synopsis |
#include "silver.h"
The intersect_2_plane function computes the intersection between two planes in 3D.
|
|
Parameters |
coef1 is a pointer to the first plane equation coef2 is a pointer to the second plane equation pt is a pointer to a 3D point on the line of intersection dir is a pointer to a 3D displacement along the line of intersection
|
|
Return Value |
intersect_2_plane returns TRUE if the planes coef1 and coef2 intersect, and FALSE if they do not.
|
|
Remarks |
When two planes intersect, their intersection is a line. Adding dir to pt will yield a second point on the line of intersection.
|
|
See Also |
|