| 14 | namespace |
| 15 | { |
| 16 | inline m2::PointU ClampPoint(m2::PointD const & maxPoint, m2::PointD const & point) |
| 17 | { |
| 18 | using uvalue_t = m2::PointU::value_type; |
| 19 | return {static_cast<uvalue_t>(math::Clamp(point.x, 0.0, maxPoint.x)), |
| 20 | static_cast<uvalue_t>(math::Clamp(point.y, 0.0, maxPoint.y))}; |
| 21 | } |
| 22 | |
| 23 | struct edge_less_p0 |
| 24 | { |
no test coverage detected