Find the point on the line going through the points L1-L2 that is closest to the point P.
Syntax
float GEMS_3D_Dist_Point_Line(
Point_3D *P,
Point_3D *L1,
Point_3D *L2,
Point_3D *Pt=NULL
) ;
Parameters
P
Pointer to the coordinate of the 3D point.
L1
Pointer to the first point of the line.
L2
Pointer to the second point of the line.
Pt
Pointer to a 3D point structure that will contain the coordinate of the closest point to P on the line L1-L2.
Return value
This function return the distance between a point and a line in 3D.
Remarks
Requirements
Header:
sliceO_include.hpp
Library:
sliceO_Structures.lib
Example
See also