#include <Rect.h>
Inheritance diagram for Teddy::Maths::TRect:
Public Methods | |
TRect () | |
TRect (const TVector2< int > &a, const TVector2< int > &b) | |
TRect (const TVector2< float > &a, const TVector2< float > &b) | |
TRect (const TVector2< double > &a, const TVector2< double > &b) | |
TRect (const TRect< int > &r) | |
TRect (const TRect< float > &r) | |
TRect (const TRect< double > &r) | |
TVector2< T > | getSize () const |
T | getArea () const |
void | setSize (const TVector2< T > &size) |
const TRect & | intersect (const TRect &a) |
TRect | grow (const TVector2< T > v) |
TRect | shrink (const TVector2< T > v) |
bool | hit (const TVector2< T > v) const |
const TRect & | setPosition (const TVector2< T > &pos) |
const TRect & | move (const TVector2< T > &v) |
const TRect & | operator+= (const TVector2< T > &v) |
TRect | operator+ (const TVector2< T > &v) const |
const TRect & | operator-= (const TVector2< T > &v) |
TRect | operator- (const TVector2< T > &v) const |
Public Attributes | |
TVector2< T > | min |
TVector2< T > | max |
Private Methods | |
TRect () | |
TRect (const TVector2< T > &a, const TVector2< T > &b) | |
TRect | intersection (const TRect &a) |
bool | hit (const TVector2< T > v) |
Private Attributes | |
TVector2< T > | min |
TVector2< T > | max |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 50 of file Rectangle.h. |
|
Definition at line 51 of file Rectangle.h. |
|
|
|
|
|
|
|
Definition at line 69 of file Rectangle.h. |
|
|
|
|
|
Definition at line 56 of file Rectangle.h. |
|
Definition at line 124 of file Rect.h. Referenced by Teddy::Maths::TRect< int >::setPosition. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 48 of file Rectangle.h. |
|
|
Definition at line 47 of file Rectangle.h. |
|