SolidKit3D.Math3D.ClosestLinePointPosition
From Solid Graphics Wiki
(Redirected from Math3D.ClosestLinePointPosition)
| ||||||||
The ClosestLinePointPosition function calculates position of a point lying on a specified line closest to a specified point.
public static float ClosestLinePointPosition ( ref Point P0, ref Point P1, ref Point P );
Parameters
| P0 | x,y,z coordinates of first point defining the line |
| P1 | x,y,z coordinates of second point defining the line |
| P | x,y,z coordinates of the point for which the function finds the closest line-point. |
Return Value
The function returns position of a point lying on the specified line closest to the specified point. The returned position value can be translated to the point coordinates using the Math3D.LinePositionToPoint function.
See Also
