ScottPlot
|
Represents an X/Y location on screen in pixel units. Pixels in screen units are distinct from Coordinates with axis units. Pixels use float precision, whereas Coordinates use double precision. More...
Public Member Functions | |
Pixel (float x, float y) | |
Create a pixel, casting double values into ones with float precision. | |
Pixel (double x, double y) | |
Create a pixel, casting double values into ones with float precision. | |
override string | ToString () |
SKPoint | ToSKPoint () |
Convert the ScottPlot pixel to a SkiaSharp point. | |
bool | Equals (Pixel other) |
override bool | Equals (object? obj) |
override int | GetHashCode () |
readonly float | DistanceFrom (Pixel px2) |
readonly Pixel | WithOffset (float dX, float dY) |
readonly Pixel | WithOffset (PixelOffset offset) |
readonly Pixel | MovedRight (float dX) |
readonly Pixel | MovedLeft (float dX) |
readonly Pixel | MovedUp (float dY) |
readonly Pixel | MovedDown (float dY) |
readonly Pixel | Divide (float v) |
readonly Pixel | Divide (float x, float y) |
readonly Pixel | Multiply (float v) |
readonly Pixel | Multiply (float x, float y) |
Static Public Member Functions | |
static bool | operator== (Pixel a, Pixel b) |
static bool | operator!= (Pixel a, Pixel b) |
static Pixel | operator+ (Pixel a, Pixel b) |
static Pixel | operator- (Pixel a, Pixel b) |
static Pixel | operator* (Pixel a, float b) |
static Pixel | operator/ (Pixel a, float b) |
Public Attributes | |
float | X |
Horizontal position on the screen in pixel units. Larger numbers are farther right on the screen. | |
float | Y |
Vertical position on the screen in pixel units. Larger numbers are lower on the screen. | |
Properties | |
static Pixel | NaN [get] |
Represents an invalid pixel location. | |
static Pixel | Zero [get] |
Represents an X/Y location on screen in pixel units. Pixels in screen units are distinct from Coordinates with axis units. Pixels use float precision, whereas Coordinates use double precision.
|
inline |
Create a pixel, casting double values into ones with float precision.
|
inline |
Create a pixel, casting double values into ones with float precision.
|
inline |
readonly Pixel ScottPlot.Pixel.Divide | ( | float | v | ) |
readonly Pixel ScottPlot.Pixel.Divide | ( | float | x, |
float | y | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
readonly Pixel ScottPlot.Pixel.Multiply | ( | float | v | ) |
readonly Pixel ScottPlot.Pixel.Multiply | ( | float | x, |
float | y | ||
) |
|
inline |
|
inline |
|
inline |
float ScottPlot.Pixel.X |
Horizontal position on the screen in pixel units. Larger numbers are farther right on the screen.
float ScottPlot.Pixel.Y |
Vertical position on the screen in pixel units. Larger numbers are lower on the screen.
|
staticget |
Represents an invalid pixel location.
|
staticget |