Show / Hide Table of Contents

Class Pwl.Instance.Line

A description of a line segment.

Inheritance
object
Pwl.Instance.Line
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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.

Extension Methods

Utility.ThrowIfNull<T>(T, string)
In this article
Back to top Generated by DocFX