http://stackoverflow.com/questions/849211/shortest-distance-between-a-point-and-a-line-segment
View code on GitHub Namespace: DeltaEngine.DatatypesAssembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
public float DistanceToLineSegment(
Vector2D lineStart,
Vector2D lineEnd
)
public float DistanceToLineSegment(
Vector2D lineStart,
Vector2D lineEnd
)
Public Function DistanceToLineSegment (
lineStart As Vector2D,
lineEnd As Vector2D
) As Single
Public Function DistanceToLineSegment (
lineStart As Vector2D,
lineEnd As Vector2D
) As Single
public:
float DistanceToLineSegment(
Vector2D lineStart,
Vector2D lineEnd
)
public:
float DistanceToLineSegment(
Vector2D lineStart,
Vector2D lineEnd
)
member DistanceToLineSegment :
lineStart : Vector2D *
lineEnd : Vector2D -> float32
member DistanceToLineSegment :
lineStart : Vector2D *
lineEnd : Vector2D -> float32
Return Value
Type:
Single