MathPlot
Public Member Functions | Public Attributes | List of all members
mpFloatRect Struct Reference

A structure for computation of bounds in real units (not in screen pixel) X refer to X axis Y refer to Y axis Y2 refer to Y2 axis when it is defined. More...

#include <mathplot.h>

Public Member Functions

bool PointIsInside (double x, double y) const
 Is point inside this bounding box (ignoring Y2)?
 
void UpdateBoundingBoxToInclude (double x, double y, double y2=0)
 Update bounding box to include this point.
 
void InitializeBoundingBox (double x, double y, double y2=0)
 Initialize bounding box with an initial point.
 
bool IsNotSet () const
 Is mpFloatRect set ?
 
bool operator== (const mpFloatRect &rect) const
 Equal operator.
 

Public Attributes

double Xmin
 
double Xmax
 
double Ymin
 
double Ymax
 
double Y2min
 
double Y2max
 

Detailed Description

A structure for computation of bounds in real units (not in screen pixel) X refer to X axis Y refer to Y axis Y2 refer to Y2 axis when it is defined.