| 387 | ) { return a.area(); } |
| 388 | |
| 389 | inline drectangle centered_drect ( |
| 390 | const dlib::vector<double,2>& p, |
| 391 | double width, |
| 392 | double height |
| 393 | ) |
| 394 | { |
| 395 | width--; |
| 396 | height--; |
| 397 | |
| 398 | return drectangle(p.x()-width/2, p.y()-height/2, p.x()+width/2, p.y()+height/2); |
| 399 | } |
| 400 | |
| 401 | inline drectangle centered_drect ( |
| 402 | const drectangle& rect, |
no test coverage detected