Table of Contents

Struct PixelLine

Namespace
ScottPlot
Assembly
ScottPlot.dll

Describes a straight line in pixel space

public readonly struct PixelLine
Inherited Members
Extension Methods

Constructors

PixelLine(Pixel, Pixel)

public PixelLine(Pixel px1, Pixel px2)

Parameters

px1 Pixel
px2 Pixel

PixelLine(float, float, float, float)

public PixelLine(float x1, float y1, float x2, float y2)

Parameters

x1 float
y1 float
x2 float
y2 float

Fields

X1

public readonly float X1

Field Value

float

X2

public readonly float X2

Field Value

float

Y1

public readonly float Y1

Field Value

float

Y2

public readonly float Y2

Field Value

float

Properties

AngleDegrees

public float AngleDegrees { get; }

Property Value

float

AngleRadians

public float AngleRadians { get; }

Property Value

float

Center

public Pixel Center { get; }

Property Value

Pixel

DeltaX

public float DeltaX { get; }

Property Value

float

DeltaY

public float DeltaY { get; }

Property Value

float

Length

public float Length { get; }

Property Value

float

Pixel1

public Pixel Pixel1 { get; }

Property Value

Pixel

Pixel2

public Pixel Pixel2 { get; }

Property Value

Pixel

Slope

public float Slope { get; }

Property Value

float

SlopeDegrees

public float SlopeDegrees { get; }

Property Value

float

SlopeRadians

public float SlopeRadians { get; }

Property Value

float

XSpan

public float XSpan { get; }

Property Value

float

YIntercept

public float YIntercept { get; }

Property Value

float

YSpan

public float YSpan { get; }

Property Value

float

Methods

BackedUpBy(float)

public PixelLine BackedUpBy(float distance)

Parameters

distance float

Returns

PixelLine

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

WithDelta(float, float)

public PixelLine WithDelta(float dx, float dy)

Parameters

dx float
dy float

Returns

PixelLine

X(float)

Return the X position on the line at the given Y

public float X(float y = 0)

Parameters

y float

Returns

float

Y(float)

Return the Y position on the line at the given X

public float Y(float x = 0)

Parameters

x float

Returns

float