Lines Matching refs:rhs
39 inline bool operator == (const Point& rhs) const {
40 return (x == rhs.x) && (y == rhs.y);
42 inline bool operator != (const Point& rhs) const {
43 return !operator == (rhs);
52 bool operator < (const Point& rhs) const {
53 return y<rhs.y || (y==rhs.y && x<rhs.x);
62 inline Point& operator += (const Point& rhs) {
63 x += rhs.x;
64 y += rhs.y;
67 inline Point& operator -= (const Point& rhs) {
68 x -= rhs.x;
69 y -= rhs.y;
73 const Point operator + (const Point& rhs) const {
74 const Point result(x+rhs.x, y+rhs.y);
77 const Point operator - (const Point& rhs) const {
78 const Point result(x-rhs.x, y-rhs.y);