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
PixelLine(float, float, float, float)
public PixelLine(float x1, float y1, float x2, float y2)
Parameters
Fields
X1
public readonly float X1
Field Value
X2
public readonly float X2
Field Value
Y1
public readonly float Y1
Field Value
Y2
public readonly float Y2
Field Value
Properties
AngleDegrees
public float AngleDegrees { get; }
Property Value
AngleRadians
public float AngleRadians { get; }
Property Value
Center
public Pixel Center { get; }
Property Value
DeltaX
public float DeltaX { get; }
Property Value
DeltaY
public float DeltaY { get; }
Property Value
Length
public float Length { get; }
Property Value
Pixel1
public Pixel Pixel1 { get; }
Property Value
Pixel2
public Pixel Pixel2 { get; }
Property Value
Slope
public float Slope { get; }
Property Value
SlopeDegrees
public float SlopeDegrees { get; }
Property Value
SlopeRadians
public float SlopeRadians { get; }
Property Value
XSpan
public float XSpan { get; }
Property Value
YIntercept
public float YIntercept { get; }
Property Value
YSpan
public float YSpan { get; }
Property Value
Methods
BackedUpBy(float)
public PixelLine BackedUpBy(float distance)
Parameters
distancefloat
Returns
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
Returns
X(float)
Return the X position on the line at the given Y
public float X(float y = 0)
Parameters
yfloat
Returns
Y(float)
Return the Y position on the line at the given X
public float Y(float x = 0)
Parameters
xfloat