#include <externs.h>
Public Member Functions | |
coord_def (int x_in=0, int y_in=0) | |
void | set (int xi, int yi) |
void | reset () |
int | distance_from (const coord_def &b) const |
bool | operator== (const coord_def &other) const |
bool | operator!= (const coord_def &other) const |
bool | operator< (const coord_def &other) const |
bool | operator> (const coord_def &other) const |
const coord_def & | operator+= (const coord_def &other) |
const coord_def & | operator+= (int offset) |
const coord_def & | operator-= (const coord_def &other) |
const coord_def & | operator-= (int offset) |
const coord_def & | operator/= (int div) |
const coord_def & | operator*= (int mul) |
coord_def | operator+ (const coord_def &other) const |
coord_def | operator+ (int other) const |
coord_def | operator- (const coord_def &other) const |
coord_def | operator- () const |
coord_def | operator- (int other) const |
coord_def | operator/ (int div) const |
coord_def | operator* (int mul) const |
coord_def | sgn () const |
int | abs () const |
int | rdist () const |
bool | origin () const |
bool | zero () const |
bool | equals (const int xi, const int yi) const |
Public Attributes | |
int | x |
int | y |
coord_def::coord_def | ( | int | x_in = 0 , |
|
int | y_in = 0 | |||
) | [inline, explicit] |
void coord_def::set | ( | int | xi, | |
int | yi | |||
) | [inline] |
void coord_def::reset | ( | ) | [inline] |
int coord_def::distance_from | ( | const coord_def & | b | ) | const |
bool coord_def::operator== | ( | const coord_def & | other | ) | const [inline] |
bool coord_def::operator!= | ( | const coord_def & | other | ) | const [inline] |
bool coord_def::operator< | ( | const coord_def & | other | ) | const [inline] |
bool coord_def::operator> | ( | const coord_def & | other | ) | const [inline] |
const coord_def& coord_def::operator+= | ( | int | offset | ) | [inline] |
const coord_def& coord_def::operator-= | ( | int | offset | ) | [inline] |
const coord_def& coord_def::operator/= | ( | int | div | ) | [inline] |
const coord_def& coord_def::operator*= | ( | int | mul | ) | [inline] |
coord_def coord_def::operator+ | ( | int | other | ) | const [inline] |
coord_def coord_def::operator- | ( | ) | const [inline] |
coord_def coord_def::operator- | ( | int | other | ) | const [inline] |
coord_def coord_def::operator/ | ( | int | div | ) | const [inline] |
coord_def coord_def::operator* | ( | int | mul | ) | const [inline] |
coord_def coord_def::sgn | ( | ) | const [inline] |
int coord_def::abs | ( | ) | const [inline] |
int coord_def::rdist | ( | ) | const [inline] |
bool coord_def::origin | ( | ) | const [inline] |
bool coord_def::zero | ( | ) | const [inline] |
bool coord_def::equals | ( | const int | xi, | |
const int | yi | |||
) | const [inline] |
int coord_def::x |
int coord_def::y |