| 25 | } |
| 26 | |
| 27 | static void boundPoint(double &xMin, double &yMin, double &xMax, double &yMax, Point2 p) { |
| 28 | if (p.x < xMin) xMin = p.x; |
| 29 | if (p.y < yMin) yMin = p.y; |
| 30 | if (p.x > xMax) xMax = p.x; |
| 31 | if (p.y > yMax) yMax = p.y; |
| 32 | } |
| 33 | |
| 34 | void Contour::bound(double &xMin, double &yMin, double &xMax, double &yMax) const { |
| 35 | for (std::vector<EdgeHolder>::const_iterator edge = edges.begin(); edge != edges.end(); ++edge) |