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

Represents a point in coordinate space (X and Y axis units) More...

Inheritance diagram for ScottPlot.Coordinates:
IEquatable

Public Member Functions

 Coordinates (double x, double y)
 Define a new coordinate at the given X and Y location (in axis units)
 
double DistanceSquared (Coordinates pt)
 
double Distance (Coordinates pt)
 
override string ToString ()
 
bool Equals (Coordinates other)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 
CoordinateRect ToRect (double radiusX, double radiusY)
 
CoordinateRect ToRect (double radius)
 
Coordinates WithDelta (double dX, double dY)
 
 readonly (double X, double Y) Deconstruct()
 

Static Public Member Functions

static Coordinates[] Zip (double[] xs, double[] ys)
 Create an array of coordinates from individual arrays of X and Y positions.
 
static bool operator== (Coordinates a, Coordinates b)
 
static bool operator!= (Coordinates a, Coordinates b)
 
static Coordinates operator+ (Coordinates a, Coordinates b)
 

Properties

double X [get, set]
 
double Y [get, set]
 
bool AreReal [get]
 
static Coordinates NaN [get]
 
static Coordinates Zero [get]
 
static Coordinates Origin [get]
 
static Coordinates Infinity [get]
 
readonly Coordinates Rotated [get]
 The inverse of the present coordinate. E.g., the point (X, Y) becomes (Y, X).
 

Detailed Description

Represents a point in coordinate space (X and Y axis units)

Constructor & Destructor Documentation

◆ Coordinates()

ScottPlot.Coordinates.Coordinates ( double  x,
double  y 
)
inline

Define a new coordinate at the given X and Y location (in axis units)

Member Function Documentation

◆ Distance()

double ScottPlot.Coordinates.Distance ( Coordinates  pt)
inline

◆ DistanceSquared()

double ScottPlot.Coordinates.DistanceSquared ( Coordinates  pt)
inline

◆ Equals() [1/2]

bool ScottPlot.Coordinates.Equals ( Coordinates  other)
inline

◆ Equals() [2/2]

override bool ScottPlot.Coordinates.Equals ( object?  obj)
inline

◆ GetHashCode()

override int ScottPlot.Coordinates.GetHashCode ( )
inline

◆ operator!=()

static bool ScottPlot.Coordinates.operator!= ( Coordinates  a,
Coordinates  b 
)
inlinestatic

◆ operator+()

static Coordinates ScottPlot.Coordinates.operator+ ( Coordinates  a,
Coordinates  b 
)
inlinestatic

◆ operator==()

static bool ScottPlot.Coordinates.operator== ( Coordinates  a,
Coordinates  b 
)
inlinestatic

◆ readonly()

ScottPlot.Coordinates.readonly ( double  X,
double  Y 
) const

◆ ToRect() [1/2]

CoordinateRect ScottPlot.Coordinates.ToRect ( double  radius)
inline

◆ ToRect() [2/2]

CoordinateRect ScottPlot.Coordinates.ToRect ( double  radiusX,
double  radiusY 
)
inline

◆ ToString()

override string ScottPlot.Coordinates.ToString ( )
inline

◆ WithDelta()

Coordinates ScottPlot.Coordinates.WithDelta ( double  dX,
double  dY 
)
inline

◆ Zip()

static Coordinates[] ScottPlot.Coordinates.Zip ( double[]  xs,
double[]  ys 
)
inlinestatic

Create an array of coordinates from individual arrays of X and Y positions.

Property Documentation

◆ AreReal

bool ScottPlot.Coordinates.AreReal
get

◆ Infinity

Coordinates ScottPlot.Coordinates.Infinity
staticget

◆ NaN

Coordinates ScottPlot.Coordinates.NaN
staticget

◆ Origin

Coordinates ScottPlot.Coordinates.Origin
staticget

◆ Rotated

readonly Coordinates ScottPlot.Coordinates.Rotated
get

The inverse of the present coordinate. E.g., the point (X, Y) becomes (Y, X).

◆ X

double ScottPlot.Coordinates.X
getset

◆ Y

double ScottPlot.Coordinates.Y
getset

◆ Zero

Coordinates ScottPlot.Coordinates.Zero
staticget

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