Creates a Line with the specified slope and intercept.

**Namespace:**
AForge.Math.Geometry

**Assembly:**
AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)

# Syntax

#### Parameters

- slope
- Type: System..::.Single

The slope of the line

- intercept
- Type: System..::.Single

The Y-intercept of the line, unless the slope is an infinity, in which case the line's equation is "x = intercept" instead.

#### Return Value

Returns a Line representing the specified line.# Remarks

The construction here follows the same rules as for the rest of this class. Most lines are expressed as y = slope * x + intercept. Vertical lines, however, are x = intercept. This is indicated by IsVertical being true or by Slope returning PositiveInfinity or NegativeInfinity.