Math2DSquareDistanceLineToPoint Method |
Calculates the squared distance between a finite line and a point.
Namespace: Altaxo.GeometryAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static double SquareDistanceLineToPoint(
PointD2D point,
PointD2D lineOrg,
PointD2D lineEnd
)
Parameters
- point PointD2D
- The location of the point.
- lineOrg PointD2D
- The location of the line origin.
- lineEnd PointD2D
- The location of the line end.
Return Value
DoubleThe squared distance between the line (threated as having a finite length) and the point.
See Also