2-dimensional integer point ADT
![]() | ZERO |
![]() | x the x-coordinate. |
![]() | y the y-coordinate. |
![]() | Point (int a = 0, int b = 0) Construct and initialize point. |
![]() | Point (const Point &p) Copy constructor. |
![]() | Set (int a, int b) Set point to (a,b). |
![]() | operator+ (const Point p1, const Point p2) Add points. |
![]() | operator- (const Point p1, const Point p2) Subtract points. |
![]() | operator* (const Point p1, const Point p2) Multiply points. |
![]() | operator/ (const Point p1, const Point p2) Devide points. |
![]() | operator- () Subtract point from point. |
![]() | operator== (const Point &x, const Point &y) Return whether points are equal. |
![]() | operator!= (const Point &x, const Point &y) Return whether points are unequal. |
![]() | operator+= (const Point p1) Translate the point. |
![]() | operator-= (const Point p1) Translate the point. |
![]() | operator*= (const Point p1) Translate the point. |
![]() | operator/= (const Point p1) Translate the point. |
![]() | operator* (int c) Multiply by constant. |
![]() | operator* (double c) Multiply by constant. |
![]() | operator<< (ostream &o, const Point p) Write string representation to ostream. |
![]() | operator>> (istream &i, Point &p) Read string representation from istream. |
2-dimensional integer point ADT
Point(int a = 0, int b = 0)
Point(const Point &p)
void Set(int a, int b)
friend Point operator+(const Point p1, const Point p2)
friend Point operator-(const Point p1, const Point p2)
friend Point operator*(const Point p1, const Point p2)
friend Point operator/(const Point p1, const Point p2)
Point operator-()
friend bool operator==(const Point &x, const Point &y)
friend bool operator!=(const Point &x, const Point &y)
void operator+=(const Point p1)
void operator-=(const Point p1)
void operator*=(const Point p1)
void operator/=(const Point p1)
void operator*(int c)
void operator*(double c)
friend ostream& operator<<(ostream &o, const Point p)
friend istream& operator>>(istream &i, Point &p)
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de