Class Pwl.Instance.Line
A description of a line segment.
Inherited Members
Namespace: SpiceSharp.Components
Assembly: SpiceSharp.dll
Syntax
protected class Pwl.Instance.Line
Constructors
Line(double, double, double, double)
Initializes a new instance of the Pwl.Instance.Line class.
Declaration
public Line(double x1, double y1, double x2, double y2)
Parameters
| Type | Name | Description |
|---|---|---|
| double | x1 | The x-coordinate of the first point. |
| double | y1 | The y-coordinate of the first point. |
| double | x2 | The x-coordinate of the second point. |
| double | y2 | The y-coordinate of the second point. |
Methods
At(double)
Interpolates the line at the specified x-coordinate.
Declaration
public double At(double x)
Parameters
| Type | Name | Description |
|---|---|---|
| double | x | The x-coordinate. |
Returns
| Type | Description |
|---|---|
| double | The value at the specified coordinate. |