UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
U2dBox Class Reference

Public Member Functions

 U2dBox (U2dPoint *, U2dPoint *)
 
 U2dBox (U2dPoint *, double x_size, double z_size)
 
 U2dBox (double xmin, double xmax, double zmin, double zmax)
 
double getXMin () const
 
double getXMax () const
 
double getZMin () const
 
double getZMax () const
 
bool setXMin (double)
 
bool setXMax (double)
 
bool setZMin (double)
 
bool setZMax (double)
 
double getXSize () const
 
double getZSize () const
 
double getDiag () const
 
bool checkInside (const U2dPoint &p) const
 
bool checkDefinitelyInside (const U2dPoint &p) const
 
bool checkOverlay (const U2dBox &box) const
 
U2dBox combineBox (U2dBox box1, U2dBox box2)
 
int operator== (const U2dBox &rbox) const
 
int operator!= (const U2dBox &rbox) const
 

Protected Attributes

double m_x_range [2]
 
double m_z_range [2]
 

Member Function Documentation

bool U2dBox::checkDefinitelyInside ( const U2dPoint p) const

Check the point is inside the box (except box faces)

bool U2dBox::checkInside ( const U2dPoint p) const

Check the point is inside the box (including box faces)

bool U2dBox::checkOverlay ( const U2dBox box) const

Check the point is inside the box (with precision = U3D_EPSILON - see u3d_defines.hpp)

double U2dBox::getDiag ( ) const

Get box diagonal value

double U2dBox::getXMax ( ) const
inline

Get max value of x coordinate range.

double U2dBox::getXMin ( ) const
inline

Get min value of x coordinate range.

double U2dBox::getXSize ( ) const
inline

Get x size of the box.

double U2dBox::getZMax ( ) const
inline

Get max value of z coordinate range.

double U2dBox::getZMin ( ) const
inline

Get min value of z coordinate range.

double U2dBox::getZSize ( ) const
inline

Get z size of the box.

bool U2dBox::setXMax ( double  xmax)
inline

Set max value of x coordinate range.

bool U2dBox::setXMin ( double  xmin)
inline

Set min value of x coordinate range.

bool U2dBox::setZMax ( double  zmax)
inline

Set max value of z coordinate range.

bool U2dBox::setZMin ( double  zmin)
inline

Set min value of z coordinate range.


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