Lattice Microbes 2.5
This is for whole cell modeling
Loading...
Searching...
No Matches
lm::builder::bounding_box Struct Reference

The bounds for a shape represented as a rectangular box. More...

#include <Shape.h>

Collaboration diagram for lm::builder::bounding_box:
[legend]

Public Member Functions

 bounding_box (si_dist_t x1=0.0, si_dist_t y1=0.0, si_dist_t z1=0.0, si_dist_t x2=0.0, si_dist_t y2=0.0, si_dist_t z2=0.0)
 Create a bounding box for coordinates.
 bounding_box (point min, point max)
 Create a bounding box from points.
bounding_box joinWith (bounding_box j)
 Return a bounding box spanning the two bounding boxes.
double volume ()
 Returns the bounding box volume.
point randomPointInside ()
 Retun a random point inside the bounding box.

Public Attributes

point min
point max

Detailed Description

The bounds for a shape represented as a rectangular box.

Constructor & Destructor Documentation

◆ bounding_box() [1/2]

lm::builder::bounding_box::bounding_box ( si_dist_t x1 = 0.0,
si_dist_t y1 = 0.0,
si_dist_t z1 = 0.0,
si_dist_t x2 = 0.0,
si_dist_t y2 = 0.0,
si_dist_t z2 = 0.0 )
inline

Create a bounding box for coordinates.

Parameters
x1Bottom x
y1Bottom y
z1Bottom z
x2Top x
y2Top y
z2Top z
Here is the caller graph for this function:

◆ bounding_box() [2/2]

lm::builder::bounding_box::bounding_box ( point min,
point max )
inline

Create a bounding box from points.

Parameters
minMinimum coordinate
maxMaximum coordinate

Member Function Documentation

◆ joinWith()

bounding_box lm::builder::bounding_box::joinWith ( bounding_box j)
inline

Return a bounding box spanning the two bounding boxes.

Parameters
jOther bounding box
Returns
new bounding box
Here is the call graph for this function:

◆ randomPointInside()

point lm::builder::bounding_box::randomPointInside ( )
inline

Retun a random point inside the bounding box.

Returns
point

◆ volume()

double lm::builder::bounding_box::volume ( )
inline

Returns the bounding box volume.

Returns
volume
Here is the caller graph for this function:

Member Data Documentation

◆ max

point lm::builder::bounding_box::max

◆ min

point lm::builder::bounding_box::min

The documentation for this struct was generated from the following file:
  • /data2/LM_zls_github/Lattice-Microbes/src/builder/Shape.h