Mount Fuji Engine  0.8b
MFVector& MFCollision_NearestPointOnLine ( const MFVector &  lineStart,
const MFVector &  lineEnd,
const MFVector &  point,
MFVector *  pOutput 
)

Find the nearest point on a line to an arbitrary point.

Parameters
lineStartStart of line segment.
lineEndEnd of line segmnt.
pointPoint of reference to find the closest point on the line.
pOutputPointer to an MFVector that received the output.
Returns
The nearest point on the ray to the specified point.