| 254 | } |
| 255 | |
| 256 | template <typename T> bool tRECT<T>::overlap( const tRECT<T>& rect ) const { |
| 257 | return Left < rect.Right && Top < rect.Bottom && rect.Left < Right && rect.Top < Bottom; |
| 258 | } |
| 259 | |
| 260 | template <typename T> Vector2<T> tRECT<T>::getPosition() const { |
| 261 | return Vector2<T>( Left, Top ); |