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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy