Constructs a new
Line through two points.
Namespace: Extreme.Mathematics.CurvesAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public Line(
double x1,
double y1,
double x2,
double y2
)
Public Sub New (
x1 As Double,
y1 As Double,
x2 As Double,
y2 As Double
)
public:
Line(
double x1,
double y1,
double x2,
double y2
)
new :
x1 : float *
y1 : float *
x2 : float *
y2 : float -> Line
Parameters
- x1
- Type: SystemDouble
X-coordinate of the first point. - y1
- Type: SystemDouble
Y-coordinate of the first point. - x2
- Type: SystemDouble
X-coordinate of the second point. - y2
- Type: SystemDouble
Y-coordinate of the second point.
Exception | Condition |
---|
ArgumentException | The
x-coordinates of the points defining the line
are the same. |
A line is completely defined by
two points with distinct x-coordinates. If the
x-coordinates are the same, an exception
of type ArgumentException is thrown.
Numerical Libraries
Supported in: 6.0, 5.x, 4.x
Reference