Geophysical Inversion and Modelling Library v1.5.4
Loading...
Searching...
No Matches
GIMLI::BoundingBox Class Reference

A BoundingBox. More...

#include <mesh.h>

+ 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)
 

Protected Attributes

Pos min_
 
Pos 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 & 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]

References max(), and min().

Referenced by BoundingBox(), and operator=().

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

References BoundingBox().

Member Function Documentation

◆ 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

◆ min()

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

◆ operator=()

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

Assignment operator.

References BoundingBox().

◆ setMax()

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

Set maximum Position.

References max().

◆ setMin()

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

Set minimum Position.

References min().

◆ xMax()

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

Return maximal x coordinate.

Referenced by xSize().

◆ xMin()

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

Return minimal x coordinate.

Referenced by xSize().

◆ xSize()

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

Return maximal x length.

References xMax(), and xMin().

◆ yMax()

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

Return maximal y coordinate.

Referenced by ySize().

◆ yMin()

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

Return minimal y coordinate.

Referenced by ySize().

◆ ySize()

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

Return maximal y length.

References yMax(), and yMin().

◆ zMax()

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

Return maximal z coordinate.

Referenced by zSize().

◆ zMin()

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

Return minimal z coordinate.

Referenced by zSize().

◆ zSize()

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

Return maximal z length.

References zMax(), and zMin().