neurolots  0.3.4
NeuroLOTs
nlgeometry::AxisAlignedBoundingBox Class Reference

#include <AxisAlignedBoundingBox.h>

+ Collaboration diagram for nlgeometry::AxisAlignedBoundingBox:

Public Member Functions

NLGEOMETRY_API AxisAlignedBoundingBox (const Eigen::Vector3f &minimum_, const Eigen::Vector3f &maximum_)
 Constructor. More...
 
NLGEOMETRY_API AxisAlignedBoundingBox (void)
 Default constructor.
 
NLGEOMETRY_API ~AxisAlignedBoundingBox (void)
 Default destructor.
 
NLGEOMETRY_API Eigen::Vector3f & minimum (void)
 Method that returns the minimum axis aligned bounding box position. More...
 
NLGEOMETRY_API const Eigen::Vector3f & minimum (void) const
 
NLGEOMETRY_API Eigen::Vector3f & maximum (void)
 Method that returns the maximum axis aligned bounding box position. More...
 
NLGEOMETRY_API const Eigen::Vector3f & maximum (void) const
 
NLGEOMETRY_API Eigen::Vector3f center (void) const
 Method that computes and return the axis aligned bounding box center. More...
 
NLGEOMETRY_API float radius (void) const
 Method that computes and return the axis aligned bounding box radius. More...
 
NLGEOMETRY_API void expand (const Eigen::Vector3f &point)
 Method that expands the current bounds with the given point. More...
 
NLGEOMETRY_API void expand (const AxisAlignedBoundingBox &other)
 Method that expands the current bounds with the given bounding box. More...
 
NLGEOMETRY_API void clear (void)
 

Protected Attributes

Eigen::Vector3f _minimum
 Left bottom back axis aligned bounding box position.
 
Eigen::Vector3f _maximum
 Rigth top front axis aligned bounding box position.
 

Detailed Description

Axisalignedboundingbox

Definition at line 36 of file AxisAlignedBoundingBox.h.

Constructor & Destructor Documentation

NLGEOMETRY_API nlgeometry::AxisAlignedBoundingBox::AxisAlignedBoundingBox ( const Eigen::Vector3f &  minimum_,
const Eigen::Vector3f &  maximum_ 
)

Constructor.

Parameters
minimum_minimum axis aligned bounding box position
maximum_maximum axis aligned bounding box position

Member Function Documentation

NLGEOMETRY_API Eigen::Vector3f nlgeometry::AxisAlignedBoundingBox::center ( void  ) const

Method that computes and return the axis aligned bounding box center.

Returns
the axis aligned bounding box center
NLGEOMETRY_API void nlgeometry::AxisAlignedBoundingBox::expand ( const Eigen::Vector3f &  point)

Method that expands the current bounds with the given point.

Parameters
pointgiven point to expand current bounds
NLGEOMETRY_API void nlgeometry::AxisAlignedBoundingBox::expand ( const AxisAlignedBoundingBox other)

Method that expands the current bounds with the given bounding box.

Parameters
othergiven bounding box to expand current bounds
NLGEOMETRY_API Eigen::Vector3f& nlgeometry::AxisAlignedBoundingBox::maximum ( void  )

Method that returns the maximum axis aligned bounding box position.

Returns
the maximum axis aligned bounding box position
NLGEOMETRY_API Eigen::Vector3f& nlgeometry::AxisAlignedBoundingBox::minimum ( void  )

Method that returns the minimum axis aligned bounding box position.

Returns
the minimum axis aligned bounding box position
NLGEOMETRY_API float nlgeometry::AxisAlignedBoundingBox::radius ( void  ) const

Method that computes and return the axis aligned bounding box radius.

Returns
the axis aligned bounding box radius

The documentation for this class was generated from the following file: