Click or drag to resize

PointD2DSquareDistanceLineToPoint Method

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

Namespace: Altaxo.Geometry
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
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

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