Vector2D DistanceToLineSegment Method Delta Engine Documentation
http://stackoverflow.com/questions/849211/shortest-distance-between-a-point-and-a-line-segment View code on GitHub

Namespace: DeltaEngine.Datatypes
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public float DistanceToLineSegment(
	Vector2D lineStart,
	Vector2D lineEnd
)

Return Value

Type: Single
See Also