MathPlot
Public Member Functions | Public Attributes | Static 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. More...

#include <mathplot.h>

Public Member Functions

bool PointIsInside (double x, double y, size_t yIndex=0) const
 Is point inside this bounding box?
 
void UpdateBoundingBoxToInclude (double x, double y, size_t yIndex=0)
 Update bounding box to include this point.
 
void InitializeBoundingBox (double x, double y, size_t yIndex=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
 
std::vector< double > YminList
 
std::vector< double > YmaxList
 

Static Public Attributes

static int ySize = 1
 If new mpFloatRect are created, we need to match the size of existing nOf Y-axes.
 

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.