| 409 | // ---------------------------------------------------------------------------------------- |
| 410 | |
| 411 | inline dlib::vector<double,2> dcenter ( |
| 412 | const dlib::rectangle& rect |
| 413 | ) |
| 414 | { |
| 415 | dlib::vector<double,2> temp(rect.left() + rect.right(), |
| 416 | rect.top() + rect.bottom()); |
| 417 | |
| 418 | return temp/2.0; |
| 419 | } |
| 420 | |
| 421 | // ---------------------------------------------------------------------------------------- |
| 422 |