Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BillYang2016 committed Mar 29, 2018
1 parent 7a23686 commit 1318297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion computation geometry/class-Point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct Point {
typedef Point Vector; //only for code convenience

double Cross(const Vector& a,const Vector& b) {return a.x*b.y-b.x*a.y;}
double Dot(Vector a,Vector b) {return a.x*b.x+a.y+b.y;}
double Dot(Vector a,Vector b) {return a.x*b.x+a.y*b.y;}
double Angle(Vector a,Vector b) {return acos(Dot(a,b)/a.length()/b.length());}
double Area(Point a,Point b,Point c) {return Cross(b-a,c-a);}

Expand Down

0 comments on commit 1318297

Please sign in to comment.