Public Member Functions | Static Public Member Functions

Coord Class Reference

a cartesian coordinate in 2D space. More...

Inheritance diagram for Coord:
Geom::Point2D< double > Coord3

List of all members.

Public Member Functions

 Coord (const Geom::Point2D< double > &p)
 Coord ()
 Coord (double cx, double cy)
bool operator== (const Coord &crd) const
bool operator!= (const Coord &crd) const
bool operator< (const Coord &crd) const
bool operator> (const Coord &crd) const
double angle (const Coord &from, const Coord &to) const
double cosAngle (const Coord &from, const Coord &to) const
 saves the expensive acos() call
Coord normalize () const
double dot (const Coord &) const
void fill (char *) const
bool use (const char *)

Static Public Member Functions

static const Coordudf ()

Detailed Description

a cartesian coordinate in 2D space.


Constructor & Destructor Documentation

Coord::Coord ( const Geom::Point2D< double > &  p  )  [inline]
Coord::Coord (  )  [inline]
Coord::Coord ( double  cx,
double  cy 
) [inline]

Member Function Documentation

double Coord::angle ( const Coord from,
const Coord to 
) const
double Coord::cosAngle ( const Coord from,
const Coord to 
) const

saves the expensive acos() call

double Coord::dot ( const Coord  )  const
void Coord::fill ( char *   )  const

Reimplemented in Coord3.

Coord Coord::normalize (  )  const

Reimplemented in Coord3.

bool Coord::operator!= ( const Coord crd  )  const [inline]
bool Coord::operator< ( const Coord crd  )  const [inline]
bool Coord::operator== ( const Coord crd  )  const [inline]
bool Coord::operator> ( const Coord crd  )  const [inline]
static const Coord& Coord::udf (  )  [static]

Reimplemented from Geom::Point2D< double >.

Reimplemented in Coord3.

bool Coord::use ( const char *   ) 

Reimplemented in Coord3.