#include <point2i.H>
Public Methods | |
point2i () | |
point2i (int xx, int yy) | |
const int * | data () const |
point2i | operator% (cpoint2i &p) const |
point2i | operator+ (cvec2i &v) const |
vec2i | operator- (cpoint2i &p) const |
point2i | operator- (cvec2i &v) const |
point2i | operator- () const |
int | operator[] (int index) const |
int & | operator[] (int index) |
double | length () const |
int | lengthSqrd () const |
int | distSqrd (cpoint2i &p) const |
double | dist (cpoint2i &p) const |
void | operator+= (cpoint2i &p) |
void | operator+= (cvec2i &v) |
void | operator-= (cpoint2i &p) |
void | operator-= (cvec2i &v) |
int | operator== (cpoint2i &p) const |
int | operator!= (cpoint2i &p) const |
Protected Attributes | |
int | _x |
int | _y |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|