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

Describes a rectangle in 2D coordinate space. More...

Inheritance diagram for ScottPlot.CoordinateRect:
IEquatable

Public Member Functions

 CoordinateRect (CoordinateRange xRange, CoordinateRange yRange)
 
 CoordinateRect (CoordinateRangeMutable xRange, CoordinateRangeMutable yRange)
 
 CoordinateRect (IAxes axes)
 
 CoordinateRect (Coordinates pt1, Coordinates pt2)
 
 CoordinateRect (double left, double right, double bottom, double top)
 
 CoordinateRect (Coordinates point, CoordinateSize size)
 
bool Contains (double x, double y)
 
bool ContainsX (double x)
 
bool ContainsY (double y)
 
CoordinateRect Expanded (Coordinates point)
 
bool Contains (Coordinates point)
 
CoordinateRect WithTranslation (Coordinates p)
 
override string ToString ()
 
bool Equals (CoordinateRect other)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static bool operator== (CoordinateRect a, CoordinateRect b)
 
static bool operator!= (CoordinateRect a, CoordinateRect b)
 

Properties

double Left [get, set]
 
double Right [get, set]
 
double Bottom [get, set]
 
double Top [get, set]
 
double HorizontalCenter [get]
 
double VerticalCenter [get]
 
Coordinates Center [get]
 
Coordinates TopLeft [get]
 
Coordinates TopRight [get]
 
Coordinates BottomLeft [get]
 
Coordinates BottomRight [get]
 
CoordinateRange XRange [get]
 
CoordinateRange YRange [get]
 
double Width [get]
 
double Height [get]
 
double Area [get]
 
bool HasArea [get]
 
bool IsInvertedX [get]
 
bool IsInvertedY [get]
 
static CoordinateRect Empty [get]
 

Detailed Description

Describes a rectangle in 2D coordinate space.

Constructor & Destructor Documentation

◆ CoordinateRect() [1/6]

ScottPlot.CoordinateRect.CoordinateRect ( CoordinateRange  xRange,
CoordinateRange  yRange 
)
inline

◆ CoordinateRect() [2/6]

ScottPlot.CoordinateRect.CoordinateRect ( CoordinateRangeMutable  xRange,
CoordinateRangeMutable  yRange 
)
inline

◆ CoordinateRect() [3/6]

ScottPlot.CoordinateRect.CoordinateRect ( IAxes  axes)
inline

◆ CoordinateRect() [4/6]

ScottPlot.CoordinateRect.CoordinateRect ( Coordinates  pt1,
Coordinates  pt2 
)
inline

◆ CoordinateRect() [5/6]

ScottPlot.CoordinateRect.CoordinateRect ( double  left,
double  right,
double  bottom,
double  top 
)
inline

◆ CoordinateRect() [6/6]

ScottPlot.CoordinateRect.CoordinateRect ( Coordinates  point,
CoordinateSize  size 
)
inline

Member Function Documentation

◆ Contains() [1/2]

bool ScottPlot.CoordinateRect.Contains ( Coordinates  point)

◆ Contains() [2/2]

bool ScottPlot.CoordinateRect.Contains ( double  x,
double  y 
)
inline

◆ ContainsX()

bool ScottPlot.CoordinateRect.ContainsX ( double  x)
inline

◆ ContainsY()

bool ScottPlot.CoordinateRect.ContainsY ( double  y)
inline

◆ Equals() [1/2]

bool ScottPlot.CoordinateRect.Equals ( CoordinateRect  other)
inline

◆ Equals() [2/2]

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

◆ Expanded()

CoordinateRect ScottPlot.CoordinateRect.Expanded ( Coordinates  point)
inline

◆ GetHashCode()

override int ScottPlot.CoordinateRect.GetHashCode ( )
inline

◆ operator!=()

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

◆ operator==()

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

◆ ToString()

override string ScottPlot.CoordinateRect.ToString ( )
inline

◆ WithTranslation()

CoordinateRect ScottPlot.CoordinateRect.WithTranslation ( Coordinates  p)

Property Documentation

◆ Area

double ScottPlot.CoordinateRect.Area
get

◆ Bottom

double ScottPlot.CoordinateRect.Bottom
getset

◆ BottomLeft

Coordinates ScottPlot.CoordinateRect.BottomLeft
get

◆ BottomRight

Coordinates ScottPlot.CoordinateRect.BottomRight
get

◆ Center

Coordinates ScottPlot.CoordinateRect.Center
get

◆ Empty

CoordinateRect ScottPlot.CoordinateRect.Empty
staticget

◆ HasArea

bool ScottPlot.CoordinateRect.HasArea
get

◆ Height

double ScottPlot.CoordinateRect.Height
get

◆ HorizontalCenter

double ScottPlot.CoordinateRect.HorizontalCenter
get

◆ IsInvertedX

bool ScottPlot.CoordinateRect.IsInvertedX
get

◆ IsInvertedY

bool ScottPlot.CoordinateRect.IsInvertedY
get

◆ Left

double ScottPlot.CoordinateRect.Left
getset

◆ Right

double ScottPlot.CoordinateRect.Right
getset

◆ Top

double ScottPlot.CoordinateRect.Top
getset

◆ TopLeft

Coordinates ScottPlot.CoordinateRect.TopLeft
get

◆ TopRight

Coordinates ScottPlot.CoordinateRect.TopRight
get

◆ VerticalCenter

double ScottPlot.CoordinateRect.VerticalCenter
get

◆ Width

double ScottPlot.CoordinateRect.Width
get

◆ XRange

CoordinateRange ScottPlot.CoordinateRect.XRange
get

◆ YRange

CoordinateRange ScottPlot.CoordinateRect.YRange
get

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