DUNE: Uniform Navigational Environment  2019.02.1
Simulators::Environment::Bounds Struct Reference

Public Member Functions

 Bounds (const Point &p, double r)
 
 Bounds (const Point &p)
 
 Bounds (const Bounds &parent, const Point &lim, int dir)
 
Bounds quadrant (int dir) const
 
template<typename T >
std::pair< int, Boundsquadrant (const T &p) const
 
bool intersects (const Bounds &other) const
 
template<typename T >
void cover (const T &p)
 
template<typename T >
bool contains (const T &p) const
 
Point midpoint () const
 
double width () const
 
double height () const
 

Public Attributes

double min_x
 
double max_x
 
double min_y
 
double max_y
 

Constructor & Destructor Documentation

Simulators::Environment::Bounds::Bounds ( const Point p,
double  r 
)
inline

Referenced by quadrant().

Simulators::Environment::Bounds::Bounds ( const Point p)
inline

Member Function Documentation

template<typename T >
bool Simulators::Environment::Bounds::contains ( const T &  p) const
inline
template<typename T >
void Simulators::Environment::Bounds::cover ( const T &  p)
inline
double Simulators::Environment::Bounds::height ( ) const
inline
bool Simulators::Environment::Bounds::intersects ( const Bounds other) const
inline
Point Simulators::Environment::Bounds::midpoint ( ) const
inline

Referenced by quadrant().

Bounds Simulators::Environment::Bounds::quadrant ( int  dir) const
inline
template<typename T >
std::pair<int, Bounds> Simulators::Environment::Bounds::quadrant ( const T &  p) const
inline
double Simulators::Environment::Bounds::width ( ) const
inline

References min_x.

Referenced by Simulators::Environment::operator<<().

Member Data Documentation

double Simulators::Environment::Bounds::max_x
double Simulators::Environment::Bounds::max_y
double Simulators::Environment::Bounds::min_x
double Simulators::Environment::Bounds::min_y
Collaboration diagram for Simulators::Environment::Bounds:
Collaboration graph