From Solid Graphics Wiki

Jump to: navigation, search
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


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