Geophysical Inversion and Modelling Library  v1.4.1-6-gca226193
GIMLI::BoundingBox Class Reference
Collaboration diagram for GIMLI::BoundingBox:

## Public Member Functions

BoundingBox (const Pos &min=Pos(0, 0, 0), const Pos &max=Pos(1.0, 1.0, 1.0))

BoundingBox (const PosVector &vPos)

BoundingBox (const BoundingBox &bbox)

BoundingBoxoperator= (const BoundingBox &bbox)

bool isInside (const Pos &p)

void setMin (const Pos &min)

const Posmin () const

void setMax (const Pos &max)

const Posmax () 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)

Pos min_

Pos max_

## Detailed Description

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

## ◆ BoundingBox() [1/3]

 GIMLI::BoundingBox::BoundingBox ( const Pos & min = `Pos(0, 0, 0)`, const Pos & max = `Pos(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 PosVector & vPos )
inline

Construct BBox from position vector

## ◆ BoundingBox() [3/3]

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

Copy constructor.

## ◆ isInside()

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

Check if a point lie inside (with boundary).

## ◆ max()

 const Pos& GIMLI::BoundingBox::max ( ) const
inline

Return a copy of the maximum position.

Referenced by ySize().

## ◆ min()

 const Pos& GIMLI::BoundingBox::min ( ) const
inline

Return a copy of the minimum position.

Referenced by xMax(), and ySize().

## ◆ operator=()

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

Assignment operator.

## ◆ setMax()

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

Set maximum Position.

## ◆ setMin()

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

Set minimum Position.

## ◆ xMax()

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

Return maximal x coordinate.

References min().

## ◆ 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.

References max(), and min().

## ◆ 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.