SolidKit3D.Math3D.ClosestLinePointPosition

From Solid Graphics Wiki

Jump to: navigation, search
SolidKit3D.Math3D.ClosestLinePointPosition
Namespace: SolidKit3D
Member of: Math3D class
Assembly: SolidKit.dll

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


   


SolidKit Library Documentation

Personal tools