#include <vecmath.h>
Public Member Functions | |
| ScreenVector () | |
| ScreenVector (const ScreenVector &v) | |
| ScreenVector (int _x, int _y) | |
| ScreenVector & | operator= (const ScreenVector &a) |
| const int & | operator[] (int n) const |
| int & | operator[] (int n) |
| ScreenVector & | operator+= (const ScreenVector &a) |
| ScreenVector & | operator-= (const ScreenVector &a) |
| ScreenVector & | operator *= (int s) |
| ScreenVector | operator- () const |
| ScreenVector | operator+ () const |
| ScreenVector | operator+ (const ScreenVector &v) const |
| ScreenVector | operator- (const ScreenVector &v) const |
| ScreenVector | operator * (const double s) const |
| int | operator * (const ScreenVector &v) const |
| double | length () const |
| int | lengthSquared () const |
| bool | operator== (const ScreenVector &v) const |
| bool | operator!= (const ScreenVector &v) const |
| void | print () const |
Private Attributes | |
| int | x |
| int | y |
Definition at line 55 of file vecmath.h.
| EMAN::ScreenVector::ScreenVector | ( | ) | [inline] |
| EMAN::ScreenVector::ScreenVector | ( | const ScreenVector & | v | ) | [inline] |
| EMAN::ScreenVector::ScreenVector | ( | int | _x, | |
| int | _y | |||
| ) | [inline] |
| double EMAN::ScreenVector::length | ( | ) | const [inline] |
| int EMAN::ScreenVector::lengthSquared | ( | ) | const [inline] |
| int EMAN::ScreenVector::operator * | ( | const ScreenVector & | v | ) | const [inline] |
| ScreenVector EMAN::ScreenVector::operator * | ( | const double | s | ) | const [inline] |
Definition at line 100 of file vecmath.h.
References ScreenVector(), x, and y.
00100 { 00101 return ScreenVector( (int)(x * s), (int)(y * s) ); 00102 }
| ScreenVector& EMAN::ScreenVector::operator *= | ( | int | s | ) | [inline] |
| bool EMAN::ScreenVector::operator!= | ( | const ScreenVector & | v | ) | const [inline] |
| ScreenVector EMAN::ScreenVector::operator+ | ( | const ScreenVector & | v | ) | const [inline] |
| ScreenVector EMAN::ScreenVector::operator+ | ( | ) | const [inline] |
| ScreenVector& EMAN::ScreenVector::operator+= | ( | const ScreenVector & | a | ) | [inline] |
| ScreenVector EMAN::ScreenVector::operator- | ( | const ScreenVector & | v | ) | const [inline] |
| ScreenVector EMAN::ScreenVector::operator- | ( | ) | const [inline] |
Definition at line 84 of file vecmath.h.
References ScreenVector(), x, and y.
00084 { 00085 return ScreenVector(-x, -y); 00086 }
| ScreenVector& EMAN::ScreenVector::operator-= | ( | const ScreenVector & | a | ) | [inline] |
| ScreenVector& EMAN::ScreenVector::operator= | ( | const ScreenVector & | a | ) | [inline] |
| bool EMAN::ScreenVector::operator== | ( | const ScreenVector & | v | ) | const [inline] |
| int& EMAN::ScreenVector::operator[] | ( | int | n | ) | [inline] |
| const int& EMAN::ScreenVector::operator[] | ( | int | n | ) | const [inline] |
| void EMAN::ScreenVector::print | ( | ) | const [inline] |
int EMAN::ScreenVector::x [private] |
Definition at line 130 of file vecmath.h.
Referenced by length(), lengthSquared(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator=(), operator==(), operator[](), and print().
int EMAN::ScreenVector::y [private] |
Definition at line 130 of file vecmath.h.
Referenced by length(), lengthSquared(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator=(), operator==(), and print().
1.4.7