TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
|
#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 |
T | left () const |
T | right () const |
T | top () const |
T | bottom () const |
T | width () const |
T | 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 ¢er, T width, T height) |
Public Attributes | |
T | x |
T | y |
T | w |
T | h |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
T cherrypi::Rect2T< T >::h |
T cherrypi::Rect2T< T >::w |
T cherrypi::Rect2T< T >::x |
T cherrypi::Rect2T< T >::y |