#include <vecmath.h>
Public Member Functions | |
ScreenPoint () | |
ScreenPoint (const ScreenPoint &p) | |
ScreenPoint (int _x, int _y) | |
ScreenPoint & | operator= (const ScreenPoint &a) |
const int & | operator[] (int n) const |
int & | operator[] (int n) |
ScreenPoint & | operator+= (const ScreenVector &v) |
ScreenPoint & | operator-= (const ScreenVector &v) |
ScreenPoint & | operator *= (int s) |
ScreenPoint | operator+ (const ScreenVector &v) const |
ScreenVector | operator- (const ScreenPoint &p) const |
ScreenPoint | operator- (const ScreenVector &v) const |
bool | operator== (const ScreenPoint &p) const |
bool | operator!= (const ScreenPoint &p) const |
void | print () const |
Private Attributes | |
int | x |
int | y |
|
Definition at line 145 of file vecmath.h.
|
|
Definition at line 146 of file vecmath.h.
|
|
Definition at line 147 of file vecmath.h.
|
|
Definition at line 167 of file vecmath.h.
|
|
Definition at line 188 of file vecmath.h.
|
|
Definition at line 172 of file vecmath.h. 00172 { 00173 return ScreenPoint( x + v[0], y + v[1] ); 00174 }
|
|
Definition at line 157 of file vecmath.h.
|
|
Definition at line 180 of file vecmath.h. 00180 { 00181 return ScreenPoint( x - v[0], y - v[1] ); 00182 }
|
|
Definition at line 176 of file vecmath.h. 00176 {
00177 return ScreenVector( x - p.x, y - p.y );
00178 }
|
|
Definition at line 162 of file vecmath.h.
|
|
Definition at line 149 of file vecmath.h.
|
|
Definition at line 184 of file vecmath.h.
|
|
Definition at line 155 of file vecmath.h. 00155 { return (&x)[n]; }
|
|
Definition at line 154 of file vecmath.h. 00154 { return (&x)[n]; }
|
|
Definition at line 192 of file vecmath.h.
|
|
Definition at line 197 of file vecmath.h. Referenced by operator!=(), operator-(), and operator==(). |
|
Definition at line 197 of file vecmath.h. Referenced by operator!=(), operator-(), and operator==(). |