ScottPlot
|
Represents a straight line in coordinate space. More...
Public Member Functions | |
CoordinateLine (double x1, double y1, double x2, double y2) | |
CoordinateLine (Coordinates pt1, Coordinates pt2) | |
CoordinateLine (double x, double y, double slope) | |
CoordinateLine (Coordinates point, double slope) | |
override string | ToString () |
CoordinateLine | ExtendTo (CoordinateRect rect) |
Adjust the line to fit within the boundaries of the given rectangle. The slope and Y intercept will not be changed. | |
double | X (double y=0) |
Return the X position on the line at the given Y. | |
double | Y (double x=0) |
Return the Y position on the line at the given X. | |
CoordinateLine | WithDelta (double dX, double dY) |
CoordinateLine | Reversed () |
Public Attributes | |
readonly double | X1 |
readonly double | X2 |
readonly double | Y1 |
readonly double | Y2 |
Properties | |
double | XSpan [get] |
double | YSpan [get] |
double | Slope [get] |
double | SlopeRadians [get] |
double | SlopeDegrees [get] |
double | YIntercept [get] |
float | Length [get] |
Coordinates | Start [get] |
Coordinates | End [get] |
Coordinates | Center [get] |
Represents a straight line in coordinate space.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Adjust the line to fit within the boundaries of the given rectangle. The slope and Y intercept will not be changed.
|
inline |
|
inline |
|
inline |
|
inline |
Return the X position on the line at the given Y.
|
inline |
Return the Y position on the line at the given X.
readonly double ScottPlot.CoordinateLine.X1 |
readonly double ScottPlot.CoordinateLine.X2 |
readonly double ScottPlot.CoordinateLine.Y1 |
readonly double ScottPlot.CoordinateLine.Y2 |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |