Table of Contents

Class TwoPointLineAnnotation

Namespace
Loehnert.Waveforms.Annotations
Assembly
Loehnert.Waveforms.dll

Represents a line annotation , which is defined by two points.

public class TwoPointLineAnnotation : PathAnnotation, IAnnotation
Inheritance
TwoPointLineAnnotation
Implements
Inherited Members

Constructors

TwoPointLineAnnotation(double, double, double, double)

Initializes a new instance of the TwoPointLineAnnotation class.

public TwoPointLineAnnotation(double x1, double y1, double x2, double y2)

Parameters

x1 double

X of point one.

y1 double

Y of point one.

x2 double

X of point two.

y2 double

Y of point two.

TwoPointLineAnnotation(Point, Point)

Initializes a new instance of the TwoPointLineAnnotation class.

public TwoPointLineAnnotation(Point p1, Point p2)

Parameters

p1 Point

Point one.

p2 Point

Point two.

Properties

X1

Gets the x value for point 1.

public double X1 { get; }

Property Value

double

X2

Gets the x value for point 2.

public double X2 { get; }

Property Value

double

Y1

Gets the y value for point 1.

public double Y1 { get; }

Property Value

double

Y2

Gets the y value for point 2.

public double Y2 { get; }

Property Value

double