Skip to content

Commit f811910

Browse files
authored
Update convex-hull.md
1 parent c60c652 commit f811910

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/geometry/convex-hull.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ of the algorithm, otherwise you wouldn't get the smallest convex hull.
4747
```{.cpp file=graham_scan}
4848
struct pt {
4949
double x, y;
50+
pt() {}
51+
pt(double x, double y): x(x), y(y) {}
52+
bool operator == (pt const& t) const {
53+
return x == t.x && y == t.y;
54+
}
5055
};
5156

5257
int orientation(pt a, pt b, pt c) {

0 commit comments

Comments
 (0)