ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Properties | List of all members
ScottPlot.PixelLine Struct Reference

Describes a straight line in pixel space. More...

Public Member Functions

 PixelLine (float x1, float y1, float x2, float y2)
 
 PixelLine (Pixel px1, Pixel px2)
 
override string ToString ()
 
PixelLine BackedUpBy (float distance)
 
PixelLine WithDelta (float dx, float dy)
 
float X (float y=0)
 Return the X position on the line at the given Y.
 
float Y (float x=0)
 Return the Y position on the line at the given X.
 

Public Attributes

readonly float X1
 
readonly float X2
 
readonly float Y1
 
readonly float Y2
 

Properties

float XSpan [get]
 
float YSpan [get]
 
float Slope [get]
 
float SlopeRadians [get]
 
float SlopeDegrees [get]
 
float AngleRadians [get]
 
float AngleDegrees [get]
 
float YIntercept [get]
 
float Length [get]
 
float DeltaX [get]
 
float DeltaY [get]
 
Pixel Pixel1 [get]
 
Pixel Pixel2 [get]
 
Pixel Center [get]
 

Detailed Description

Describes a straight line in pixel space.

Constructor & Destructor Documentation

◆ PixelLine() [1/2]

ScottPlot.PixelLine.PixelLine ( float  x1,
float  y1,
float  x2,
float  y2 
)
inline

◆ PixelLine() [2/2]

ScottPlot.PixelLine.PixelLine ( Pixel  px1,
Pixel  px2 
)
inline

Member Function Documentation

◆ BackedUpBy()

PixelLine ScottPlot.PixelLine.BackedUpBy ( float  distance)
inline

◆ ToString()

override string ScottPlot.PixelLine.ToString ( )
inline

◆ WithDelta()

PixelLine ScottPlot.PixelLine.WithDelta ( float  dx,
float  dy 
)
inline

◆ X()

float ScottPlot.PixelLine.X ( float  y = 0)
inline

Return the X position on the line at the given Y.

◆ Y()

float ScottPlot.PixelLine.Y ( float  x = 0)
inline

Return the Y position on the line at the given X.

Member Data Documentation

◆ X1

readonly float ScottPlot.PixelLine.X1

◆ X2

readonly float ScottPlot.PixelLine.X2

◆ Y1

readonly float ScottPlot.PixelLine.Y1

◆ Y2

readonly float ScottPlot.PixelLine.Y2

Property Documentation

◆ AngleDegrees

float ScottPlot.PixelLine.AngleDegrees
get

◆ AngleRadians

float ScottPlot.PixelLine.AngleRadians
get

◆ Center

Pixel ScottPlot.PixelLine.Center
get

◆ DeltaX

float ScottPlot.PixelLine.DeltaX
get

◆ DeltaY

float ScottPlot.PixelLine.DeltaY
get

◆ Length

float ScottPlot.PixelLine.Length
get

◆ Pixel1

Pixel ScottPlot.PixelLine.Pixel1
get

◆ Pixel2

Pixel ScottPlot.PixelLine.Pixel2
get

◆ Slope

float ScottPlot.PixelLine.Slope
get

◆ SlopeDegrees

float ScottPlot.PixelLine.SlopeDegrees
get

◆ SlopeRadians

float ScottPlot.PixelLine.SlopeRadians
get

◆ XSpan

float ScottPlot.PixelLine.XSpan
get

◆ YIntercept

float ScottPlot.PixelLine.YIntercept
get

◆ YSpan

float ScottPlot.PixelLine.YSpan
get

The documentation for this struct was generated from the following file: