double sgSpaceMath::ProjectPointToLineAndGetDist(const SG_POINT& lineP, const SG_VECTOR& lineDir, const SG_POINT& pnt, SG_POINT& resPnt)
Description:
Finds a projection of the point on the line in the three-dimensional space and returns the distance from the point to the line.
Arguments:
lineP - point on the line,
lineDir - line direction vector,
pnt - projected point,
resPnt - the result of projecting the pnt point on the line.
Returned value:
Returns the distance from the point to the line and the projection of the point on the line.
See also: