Creates a Line that goes through the two specified points.

Namespace:  AForge.Math.Geometry
Assembly:  AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public static Line FromPoints(
	Point point1,
	Point point2
)

Parameters

point1
Type: AForge..::.Point
One point on the line.
point2
Type: AForge..::.Point
Another point on the line.

Return Value

Returns a Line representing the line between point1 and point2.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionThrown if the two points are the same.

See Also