Geophysical Inversion and Modeling Library  v1.0.11-19-gfad5635f
GIMLI::BoundingBox Class Reference

A BoundingBox. More...

+ Collaboration diagram for GIMLI::BoundingBox:

Public Member Functions

 BoundingBox (const Pos< double > &min=Pos< double >(0, 0, 0), const Pos< double > &max=Pos< double >(1.0, 1.0, 1.0))
 
 BoundingBox (const R3Vector &vPos)
 
 BoundingBox (const BoundingBox &bbox)
 
BoundingBoxoperator= (const BoundingBox &bbox)
 
bool isInside (const Pos< double > &p)
 
void setMin (const Pos< double > &min)
 
const Pos< double > & min () const
 
void setMax (const Pos< double > &max)
 
const Pos< double > & max () const
 
double xMin () const
 
double yMin () const
 
double zMin () const
 
double xMax () const
 
double yMax () const
 
double zMax () const
 
double xSize () const
 
double ySize () const
 
double zSize () const
 

Protected Member Functions

void copy_ (const BoundingBox &bbox)
 

Protected Attributes

Pos< double > min_
 
Pos< double > max_
 

Detailed Description

A BoundingBox.

A BoundingBox which contains a min and max Vector3< double >

Constructor & Destructor Documentation

◆ BoundingBox() [1/3]

GIMLI::BoundingBox::BoundingBox ( const Pos< double > &  min = Pos < double >(0, 0, 0),
const Pos< double > &  max = Pos < double >(1.0, 1.0, 1.0) 
)
inline

Default constructor, with BoundingBox[0.0, 0.0, 0.0; 1.0, 1.0, 1.0]

◆ BoundingBox() [2/3]

GIMLI::BoundingBox::BoundingBox ( const R3Vector vPos)
inline

Construct BBox from position vector

◆ BoundingBox() [3/3]

GIMLI::BoundingBox::BoundingBox ( const BoundingBox bbox)
inline

Copy constructor.

Member Function Documentation

◆ isInside()

bool GIMLI::BoundingBox::isInside ( const Pos< double > &  p)
inline

Check if a point lie inside (with boundary).

◆ max()

const Pos< double >& GIMLI::BoundingBox::max ( ) const
inline

Return a copy of the maximum position.

Referenced by zSize().

◆ min()

const Pos< double >& GIMLI::BoundingBox::min ( ) const
inline

Return a copy of the minimum position.

Referenced by zSize().

◆ operator=()

BoundingBox& GIMLI::BoundingBox::operator= ( const BoundingBox bbox)
inline

Assignment operator.

◆ setMax()

void GIMLI::BoundingBox::setMax ( const Pos< double > &  max)
inline

Set maximum Position.

◆ setMin()

void GIMLI::BoundingBox::setMin ( const Pos< double > &  min)
inline

Set minimum Position.

◆ xMax()

double GIMLI::BoundingBox::xMax ( ) const
inline

Return maximal x coordinate.

◆ xMin()

double GIMLI::BoundingBox::xMin ( ) const
inline

Return minimal x coordinate.

◆ xSize()

double GIMLI::BoundingBox::xSize ( ) const
inline

Return maximal x length.

◆ yMax()

double GIMLI::BoundingBox::yMax ( ) const
inline

Return maximal y coordinate.

◆ yMin()

double GIMLI::BoundingBox::yMin ( ) const
inline

Return minimal y coordinate.

◆ ySize()

double GIMLI::BoundingBox::ySize ( ) const
inline

Return maximal y length.

◆ zMax()

double GIMLI::BoundingBox::zMax ( ) const
inline

Return maximal z coordinate.

◆ zMin()

double GIMLI::BoundingBox::zMin ( ) const
inline

Return minimal z coordinate.

◆ zSize()

double GIMLI::BoundingBox::zSize ( ) const
inline

Return maximal z length.

References max(), min(), and GIMLI::str().