| 308 | |
| 309 | template<typename T> |
| 310 | void RectT<T>::include( const Vec2T &point ) |
| 311 | { |
| 312 | if( x1 > point.x ) x1 = point.x; |
| 313 | if( x2 < point.x ) x2 = point.x; |
| 314 | if( y1 > point.y ) y1 = point.y; |
| 315 | if( y2 < point.y ) y2 = point.y; |
| 316 | } |
| 317 | |
| 318 | template<typename T> |
| 319 | void RectT<T>::include( const std::vector<Vec2T> &points ) |