| 366 | // eyes no more than the eye width. |
| 367 | |
| 368 | static bool IsEyeHorizOk( |
| 369 | const Rect& left, // in |
| 370 | const Rect& right) // in |
| 371 | { |
| 372 | return left.x + left.width - right.x <= .1 * left.width && |
| 373 | right.x - (left.x + left.width) <= left.width; |
| 374 | } |
| 375 | |
| 376 | static bool VerticalOverlap( // do the two eye rectangles overlap vertically? |
| 377 | const Rect& left, // in |