#include <point2i.H>
Public Methods | |
vec2i () | |
vec2i (int x, int y) | |
vec2i | operator+ (cvec2i &v) const |
vec2i | operator- (cvec2i &v) const |
int | operator * (cvec2i &v) const |
vec2i | operator- () const |
int | operator[] (int index) const |
int & | operator[] (int index) |
double | length () const |
int | lengthSqrd () const |
vec2i | perpend () const |
double | dist (cvec2i &v) const |
int | distSqrd (cvec2i &v) const |
int | isNull () const |
void | operator+= (cvec2i &v) |
void | operator-= (cvec2i &v) |
int | operator== (cvec2i &v) const |
int | operator!= (cvec2i &v) const |
Protected Attributes | |
int | _x |
int | _y |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|