open_iA  2019.12
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Public Member Functions | Public Attributes | List of all members
iAaabb Struct Reference

Structure representing axis aligned bounding box. More...

#include <iADreamCasterCommon.h>

Collaboration diagram for iAaabb:

Public Member Functions

iAVec3f center () const
 Calculate center vector of bb. More...
 
iAVec3f half_size () const
 Calculate half size vector of bb. More...
 
 iAaabb ()
 
 iAaabb (float a_x1, float a_x2, float a_y1, float a_y2, float a_z1, float a_z2)
 
 iAaabb (iAaabb &el)
 
int isInside (iAVec3f &v) const
 Determines if v is inside AABB. More...
 
int mainDim () const
 Calculates index of maximum dimension. More...
 
void setData (const iAaabb &el)
 
void setData (float a_x1, float a_x2, float a_y1, float a_y2, float a_z1, float a_z2)
 
float surfaceArea ()
 

Public Attributes

float x1
 
float x2
 
float y1
 
float y2
 
float z1
 
float z2
 

Detailed Description

Structure representing axis aligned bounding box.

Has ranges of each of 3 axes values, center coordinates, half-dimensions, index of maximum dimension.

Constructor & Destructor Documentation

◆ iAaabb() [1/3]

iAaabb::iAaabb ( )

◆ iAaabb() [2/3]

iAaabb::iAaabb ( iAaabb el)

◆ iAaabb() [3/3]

iAaabb::iAaabb ( float  a_x1,
float  a_x2,
float  a_y1,
float  a_y2,
float  a_z1,
float  a_z2 
)

Member Function Documentation

◆ center()

iAVec3f iAaabb::center ( ) const

Calculate center vector of bb.

◆ half_size()

iAVec3f iAaabb::half_size ( ) const

Calculate half size vector of bb.

◆ isInside()

int iAaabb::isInside ( iAVec3f v) const
inline

Determines if v is inside AABB.

Note
if point is on bound it considered to be inside AABB
Returns
1 if inside, 0 otherwise

◆ mainDim()

int iAaabb::mainDim ( ) const

Calculates index of maximum dimension.

◆ setData() [1/2]

void iAaabb::setData ( const iAaabb el)

◆ setData() [2/2]

void iAaabb::setData ( float  a_x1,
float  a_x2,
float  a_y1,
float  a_y2,
float  a_z1,
float  a_z2 
)

◆ surfaceArea()

float iAaabb::surfaceArea ( )

Member Data Documentation

◆ x1

float iAaabb::x1

◆ x2

float iAaabb::x2

◆ y1

float iAaabb::y1

◆ y2

float iAaabb::y2

◆ z1

float iAaabb::z1

◆ z2

float iAaabb::z2

The documentation for this struct was generated from the following files: