All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
NetworKit::BoundingBox< T > Struct Template Reference

Bounding box used by the Octree class. More...

#include <Octree.h>

Public Member Functions

 BoundingBox ()
 Constructor for creating an empty bounding box of size 0. More...
 
 BoundingBox (const Point< T > &center, const T sideLength)
 Constructor for creating a bounding box. More...
 
 BoundingBox (const BoundingBox< T > &other)
 
void setCenter (const Point< T > &center)
 Sets the center of the bounding box. More...
 
Point< T > & getCenter ()
 
void setSideLength (T sideLength)
 Sets the side length of the bounding box. More...
 
getSideLength () const
 
getHalfSideLength () const
 
getSqSideLength () const
 
bool contains (const Point< T > &point) const
 

Detailed Description

template<typename T>
struct NetworKit::BoundingBox< T >

Bounding box used by the Octree class.

Constructor & Destructor Documentation

template<typename T>
NetworKit::BoundingBox< T >::BoundingBox ( )
inline

Constructor for creating an empty bounding box of size 0.

template<typename T>
NetworKit::BoundingBox< T >::BoundingBox ( const Point< T > &  center,
const T  sideLength 
)
inline

Constructor for creating a bounding box.

Parameters
[in]centerThe center of the bounding box.
[in]sideLengthThe side length of the bounding box.
template<typename T>
NetworKit::BoundingBox< T >::BoundingBox ( const BoundingBox< T > &  other)
inline

Member Function Documentation

template<typename T>
bool NetworKit::BoundingBox< T >::contains ( const Point< T > &  point) const
inline
Returns
True if point point is inside the bounding box.
template<typename T>
Point<T>& NetworKit::BoundingBox< T >::getCenter ( )
inline
Returns
Center of bounding box.
template<typename T>
T NetworKit::BoundingBox< T >::getHalfSideLength ( ) const
inline
Returns
Half of the side length of bounding box.
template<typename T>
T NetworKit::BoundingBox< T >::getSideLength ( ) const
inline
Returns
Side length of bounding box.
template<typename T>
T NetworKit::BoundingBox< T >::getSqSideLength ( ) const
inline
Returns
Square of the side length of bounding box.
template<typename T>
void NetworKit::BoundingBox< T >::setCenter ( const Point< T > &  center)
inline

Sets the center of the bounding box.

Parameters
[in]centerNew center.
template<typename T>
void NetworKit::BoundingBox< T >::setSideLength ( sideLength)
inline

Sets the side length of the bounding box.

Parameters
[in]sideLengthNew side length.

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