SolidKit3D.Math3D.PointToLineDistanceSquared

From Solid Graphics Wiki

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

The PointToLineDistanceSquared function returns square of shortest distance from line to point.

public static float PointToLineDistanceSquared
         (
         ref Point rkPoint,
         ref Point P0,
         ref Point P1
         );


Parameters

rkPoint x,y,z coordinates of the point
P0 x,y,z coordinates of first point defining the line
P1 x,y,z coordinates of second point defining the line

Return Value

The square of shortest distance from the line to the point.

See Also


   


SolidKit Library Documentation

Personal tools