Click or drag to resize
Accord.NET (logo)

LineFromPoints Method

Creates a Line that goes through the two specified points.

Namespace:  Accord.Math.Geometry
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static Line FromPoints(
	Point point1,
	Point point2
)
Request Example View Source

Parameters

point1
Type: AccordPoint
One point on the line.
point2
Type: AccordPoint
Another point on the line.

Return Value

Type: Line
Returns a Line representing the line between point1 and point2.
Exceptions
ExceptionCondition
ArgumentExceptionThrown if the two points are the same.
See Also