DUNE: Uniform Navigational Environment  2022.04.0
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

◆ Bounds() [1/3]

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

Referenced by quadrant().

◆ Bounds() [2/3]

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

◆ Bounds() [3/3]

Member Function Documentation

◆ contains()

template<typename T >
bool Simulators::Environment::Bounds::contains ( const T &  p) const
inline

◆ cover()

template<typename T >
void Simulators::Environment::Bounds::cover ( const T &  p)
inline

◆ height()

double Simulators::Environment::Bounds::height ( ) const
inline

◆ intersects()

bool Simulators::Environment::Bounds::intersects ( const Bounds other) const
inline

◆ midpoint()

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

Referenced by quadrant().

◆ quadrant() [1/2]

Bounds Simulators::Environment::Bounds::quadrant ( int  dir) const
inline

◆ quadrant() [2/2]

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

◆ width()

double Simulators::Environment::Bounds::width ( ) const
inline

References min_x.

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

Member Data Documentation

◆ max_x

double Simulators::Environment::Bounds::max_x

◆ max_y

double Simulators::Environment::Bounds::max_y

◆ min_x

double Simulators::Environment::Bounds::min_x

◆ min_y

double Simulators::Environment::Bounds::min_y
Collaboration diagram for Simulators::Environment::Bounds:
Collaboration graph