Synopsis
PDX_MSGT mth_Get3DPointLineProj(MTH_3DPNT line_start, MTH_3DPNT line_end, MTH_3DPNT point, MTH_3DPNT proj_point, double *proj_dist)
Purpose
Find the 3D projection of a point to a line.
Description
Find the 3D projected point on a line defined by two points and the distance between the projection point the point projected on the line.
Input
line_start
The 3D line start point coordinates
line_end
The 3D line end point coordinates
point
The 3D point to project
Output
proj_point
The 3D projected point coordinates
proj_dist
The distance between point and proj_point.
Return
MTH_NOERR