boca::Rectangle< Value > Class Template Reference

Rectangle of two Ranges. More...

#include <Rectangle.hh>

Public Member Functions

 Rectangle ()
 
 Rectangle (Range< Value > x, Range< Value > y)
 
 Rectangle (Vector2< Value > min, Vector2< Value > max)
 
 Rectangle (Vector2< Value > min, Value width, Value height)
 
 Rectangle (Value x_min, Value x_max, Value y_min, Value y_max)
 
void SetX (Value const &min, Value const &max)
 
void SetY (Value const &min, Value const &max)
 
void SetX (Range< Value > const &x)
 
void SetY (Range< Value > const &y)
 
void SetX (std::pair< Value, Value > const &x)
 
void SetY (std::pair< Value, Value > const &y)
 
void ResetY ()
 
void ResetX ()
 
void SetXMin (Value x_min)
 
void SetXMax (Value x_max)
 
void SetYMin (Value y_min)
 
void SetYMax (Value y_max)
 
void Widen (Rectangle< Value > const &range)
 
void WidenX (Range< Value > const &x)
 
void WidenXMin (Value x_min)
 
void WidenXMax (Value x_max)
 
void WidenY (Range< Value > const &y)
 
void WidenYMin (Value y_min)
 
void WidenYMax (Value y_max)
 
Value XMin () const
 
Value XMax () const
 
Value YMin () const
 
Value YMax () const
 
Vector2< Value > Min () const
 
Vector2< Value > Max () const
 
Range< Value > & Horizontal ()
 
Range< Value > & Vertical ()
 
Range< Value > const & Horizontal () const
 
Range< Value > const & Vertical () const
 
Value Width () const
 
Value Height () const
 
template<typename Value2 >
void WidenY (Range< Value > const &bound_x, std::vector< Value2 > const &xs1, std::vector< Value2 > const &ys1)
 
template<typename Value2 >
void WidenX (Range< Value > const &y, std::vector< Value2 > const &xs, std::vector< Value2 > const &ys)
 

Friends

auto & operator<< (std::ostream &stream, Rectangle const &rectangle)
 Output stream operator. More...
 

Detailed Description

template<typename Value>
class boca::Rectangle< Value >

Rectangle of two Ranges.

Constructor & Destructor Documentation

template<typename Value>
boca::Rectangle< Value >::Rectangle ( )
inline
template<typename Value>
boca::Rectangle< Value >::Rectangle ( Range< Value >  x,
Range< Value >  y 
)
inline
template<typename Value>
boca::Rectangle< Value >::Rectangle ( Vector2< Value >  min,
Vector2< Value >  max 
)
inline
template<typename Value>
boca::Rectangle< Value >::Rectangle ( Vector2< Value >  min,
Value  width,
Value  height 
)
inline
template<typename Value>
boca::Rectangle< Value >::Rectangle ( Value  x_min,
Value  x_max,
Value  y_min,
Value  y_max 
)
inline

Member Function Documentation

template<typename Value>
Value boca::Rectangle< Value >::Height ( ) const
inline
template<typename Value>
Range<Value>& boca::Rectangle< Value >::Horizontal ( )
inline
template<typename Value>
Range<Value> const& boca::Rectangle< Value >::Horizontal ( ) const
inline
template<typename Value>
Vector2<Value> boca::Rectangle< Value >::Max ( ) const
inline
template<typename Value>
Vector2<Value> boca::Rectangle< Value >::Min ( ) const
inline
template<typename Value>
void boca::Rectangle< Value >::ResetX ( )
inline
template<typename Value>
void boca::Rectangle< Value >::ResetY ( )
inline
template<typename Value>
void boca::Rectangle< Value >::SetX ( Value const &  min,
Value const &  max 
)
inline
template<typename Value>
void boca::Rectangle< Value >::SetX ( Range< Value > const &  x)
inline
template<typename Value>
void boca::Rectangle< Value >::SetX ( std::pair< Value, Value > const &  x)
inline
template<typename Value>
void boca::Rectangle< Value >::SetXMax ( Value  x_max)
inline
template<typename Value>
void boca::Rectangle< Value >::SetXMin ( Value  x_min)
inline
template<typename Value>
void boca::Rectangle< Value >::SetY ( Value const &  min,
Value const &  max 
)
inline
template<typename Value>
void boca::Rectangle< Value >::SetY ( Range< Value > const &  y)
inline
template<typename Value>
void boca::Rectangle< Value >::SetY ( std::pair< Value, Value > const &  y)
inline
template<typename Value>
void boca::Rectangle< Value >::SetYMax ( Value  y_max)
inline
template<typename Value>
void boca::Rectangle< Value >::SetYMin ( Value  y_min)
inline
template<typename Value>
Range<Value>& boca::Rectangle< Value >::Vertical ( )
inline
template<typename Value>
Range<Value> const& boca::Rectangle< Value >::Vertical ( ) const
inline
template<typename Value>
void boca::Rectangle< Value >::Widen ( Rectangle< Value > const &  range)
inline
template<typename Value>
void boca::Rectangle< Value >::WidenX ( Range< Value > const &  x)
inline
template<typename Value>
template<typename Value2 >
void boca::Rectangle< Value >::WidenX ( Range< Value > const &  y,
std::vector< Value2 > const &  xs,
std::vector< Value2 > const &  ys 
)
inline
template<typename Value>
void boca::Rectangle< Value >::WidenXMax ( Value  x_max)
inline
template<typename Value>
void boca::Rectangle< Value >::WidenXMin ( Value  x_min)
inline
template<typename Value>
void boca::Rectangle< Value >::WidenY ( Range< Value > const &  y)
inline
template<typename Value>
template<typename Value2 >
void boca::Rectangle< Value >::WidenY ( Range< Value > const &  bound_x,
std::vector< Value2 > const &  xs1,
std::vector< Value2 > const &  ys1 
)
inline
template<typename Value>
void boca::Rectangle< Value >::WidenYMax ( Value  y_max)
inline
template<typename Value>
void boca::Rectangle< Value >::WidenYMin ( Value  y_min)
inline
template<typename Value>
Value boca::Rectangle< Value >::Width ( ) const
inline
template<typename Value>
Value boca::Rectangle< Value >::XMax ( ) const
inline
template<typename Value>
Value boca::Rectangle< Value >::XMin ( ) const
inline
template<typename Value>
Value boca::Rectangle< Value >::YMax ( ) const
inline
template<typename Value>
Value boca::Rectangle< Value >::YMin ( ) const
inline

Friends And Related Function Documentation

template<typename Value>
auto& operator<< ( std::ostream &  stream,
Rectangle< Value > const &  rectangle 
)
friend

Output stream operator.


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