We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 714a131 commit 758b014Copy full SHA for 758b014
code/Geometry.cc
@@ -25,7 +25,7 @@ double dot(PT p, PT q) { return p.x*q.x+p.y*q.y; }
25
double dist2(PT p, PT q) { return dot(p-q,p-q); }
26
double cross(PT p, PT q) { return p.x*q.y-p.y*q.x; }
27
ostream &operator<<(ostream &os, const PT &p) {
28
- os << "(" << p.x << "," << p.y << ")";
+ return os << "(" << p.x << "," << p.y << ")";
29
}
30
31
// rotate a point CCW or CW around the origin
0 commit comments