0_0_33525374_2554.cpp: In member function 'bool Line::SegCrossSeg(const Line&, Point&)':
0_0_33525374_2554.cpp:60:22: error: no match for 'operator/' (operand types are 'Point' and 'double')
p=(a*s2-b*s1)/(s2-s1);
^
0_0_33525374_2554.cpp:60:22: note: candidate is:
0_0_33525374_2554.cpp:30:12: note: double Point::operator/(const Point&) const
double operator /(const Point &p)const{return x*p.x+y*p.y;}
^
0_0_33525374_2554.cpp:30:12: note: no known conversion for argument 1 from 'double' to 'const Point&'
0_0_33525374_2554.cpp: In member function 'Point Line::CrossPoint(const Line&)':
0_0_33525374_2554.cpp:81:26: error: no match for 'operator/' (operand types are 'Point' and 'double')
return(a*s2-b*s1)/(s2-s1);
^
0_0_33525374_2554.cpp:81:26: note: candidate is:
0_0_33525374_2554.cpp:30:12: note: double Point::operator/(const Point&) const
double operator /(const Point &p)const{return x*p.x+y*p.y;}
^
0_0_33525374_2554.cpp:30:12: note: no known conversion for argument 1 from 'double' to 'const Point&'
0_0_33525374_2554.cpp: In member function 'Point Polygon::CalcBary()':
0_0_33525374_2554.cpp:222:34: error: no match for 'operator/' (operand types are 'Point' and 'double')
if(dcmp(area)) return ret/area;
^
0_0_33525374_2554.cpp:222:34: note: candidate is:
0_0_33525374_2554.cpp:30:12: note: double Point::operator/(const Point&) const
double operator /(const Point &p)const{return x*p.x+y*p.y;}
^
0_0_33525374_2554.cpp:30:12: note: no known conversion for argument 1 from 'double' to 'const Point&'
|