coord_def Struct Reference

#include <externs.h>

List of all members.

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_defoperator+= (const coord_def &other)
const coord_defoperator+= (int offset)
const coord_defoperator-= (const coord_def &other)
const coord_defoperator-= (int offset)
const coord_defoperator/= (int div)
const coord_defoperator*= (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


Constructor & Destructor Documentation

coord_def::coord_def ( int  x_in = 0,
int  y_in = 0 
) [inline, explicit]


Member Function Documentation

void coord_def::set ( int  xi,
int  yi 
) [inline]

void coord_def::reset (  )  [inline]

int coord_def::distance_from ( const coord_def b  )  const

Here is the call graph for this function:

bool coord_def::operator== ( const coord_def other  )  const [inline]

bool coord_def::operator!= ( const coord_def other  )  const [inline]

Here is the call graph for this function:

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+= ( const coord_def other  )  [inline]

const coord_def& coord_def::operator+= ( int  offset  )  [inline]

const coord_def& coord_def::operator-= ( const coord_def other  )  [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+ ( const coord_def other  )  const [inline]

coord_def coord_def::operator+ ( int  other  )  const [inline]

coord_def coord_def::operator- ( const coord_def other  )  const [inline]

coord_def coord_def::operator- (  )  const [inline]

Here is the call graph for this function:

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]

Here is the call graph for this function:

int coord_def::abs (  )  const [inline]

int coord_def::rdist (  )  const [inline]

Here is the call graph for this function:

bool coord_def::origin (  )  const [inline]

bool coord_def::zero (  )  const [inline]

Here is the call graph for this function:

bool coord_def::equals ( const int  xi,
const int  yi 
) const [inline]


Member Data Documentation


The documentation for this struct was generated from the following files:

Generated on Thu Jan 13 13:32:05 2011 by  doxygen 1.5.6