TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
cherrypi::Rect2T< T > Class Template Reference

#include <basetypes.h>

Public Member Functions

 Rect2T ()
 
 Rect2T (T x, T y, T width, T height)
 
 Rect2T (Vec2T< T > const &topLeft, Vec2T< T > const &bottomRight)
 
 Rect2T (Vec2T< T > const &topLeft, T width, T height)
 
template<typename T2 >
 Rect2T (Rect2T< T2 > const &r)
 
template<typename T2 >
Rect2T< T > & operator= (Rect2T< T2 > const &r)
 
bool operator== (Rect2T< T > const &r) const
 
left () const
 
right () const
 
top () const
 
bottom () const
 
width () const
 
height () const
 
Vec2T< T > center () const
 
bool null () const
 
bool empty () const
 
Rect2T< T > united (Rect2T< T > const &r)
 
Rect2T< T > intersected (Rect2T< T > const &r) const
 
bool contains (const Vec2T< T > &pt) const
 
template<class Archive >
void serialize (Archive &ar)
 

Static Public Member Functions

static Rect2T< T > centeredWithSize (Vec2T< T > const &center, T width, T height)
 

Public Attributes

x
 
y
 
w
 
h
 

Constructor & Destructor Documentation

template<typename T>
cherrypi::Rect2T< T >::Rect2T ( )
inline
template<typename T>
cherrypi::Rect2T< T >::Rect2T ( x,
y,
width,
height 
)
inline
template<typename T>
cherrypi::Rect2T< T >::Rect2T ( Vec2T< T > const &  topLeft,
Vec2T< T > const &  bottomRight 
)
inline
template<typename T>
cherrypi::Rect2T< T >::Rect2T ( Vec2T< T > const &  topLeft,
width,
height 
)
inline
template<typename T>
template<typename T2 >
cherrypi::Rect2T< T >::Rect2T ( Rect2T< T2 > const &  r)
inline

Member Function Documentation

template<typename T>
T cherrypi::Rect2T< T >::bottom ( ) const
inline
template<typename T>
Vec2T<T> cherrypi::Rect2T< T >::center ( ) const
inline
template<typename T>
static Rect2T<T> cherrypi::Rect2T< T >::centeredWithSize ( Vec2T< T > const &  center,
width,
height 
)
inlinestatic
template<typename T>
bool cherrypi::Rect2T< T >::contains ( const Vec2T< T > &  pt) const
inline
template<typename T>
bool cherrypi::Rect2T< T >::empty ( ) const
inline
template<typename T>
T cherrypi::Rect2T< T >::height ( ) const
inline
template<typename T>
Rect2T<T> cherrypi::Rect2T< T >::intersected ( Rect2T< T > const &  r) const
inline
template<typename T>
T cherrypi::Rect2T< T >::left ( ) const
inline
template<typename T>
bool cherrypi::Rect2T< T >::null ( ) const
inline
template<typename T>
template<typename T2 >
Rect2T<T>& cherrypi::Rect2T< T >::operator= ( Rect2T< T2 > const &  r)
inline
template<typename T>
bool cherrypi::Rect2T< T >::operator== ( Rect2T< T > const &  r) const
inline
template<typename T>
T cherrypi::Rect2T< T >::right ( ) const
inline
template<typename T>
template<class Archive >
void cherrypi::Rect2T< T >::serialize ( Archive &  ar)
inline
template<typename T>
T cherrypi::Rect2T< T >::top ( ) const
inline
template<typename T>
Rect2T<T> cherrypi::Rect2T< T >::united ( Rect2T< T > const &  r)
inline
template<typename T>
T cherrypi::Rect2T< T >::width ( ) const
inline

Member Data Documentation

template<typename T>
T cherrypi::Rect2T< T >::h
template<typename T>
T cherrypi::Rect2T< T >::w
template<typename T>
T cherrypi::Rect2T< T >::x
template<typename T>
T cherrypi::Rect2T< T >::y

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