Click or drag to resize

GdiExtensionMethodsSquareDistanceLineToPoint Method

Calculates the squared distance between a finite line and a point.

Namespace: Altaxo.Graph.Gdi
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double SquareDistanceLineToPoint(
	PointF point,
	PointF lineOrg,
	PointF lineEnd
)

Parameters

point  PointF
The location of the point.
lineOrg  PointF
The location of the line origin.
lineEnd  PointF
The location of the line end.

Return Value

Double
The squared distance between the line (threated as having a finite length) and the point.
See Also