Public Member Functions | Static Public Member Functions | Public Attributes

Coord3 Class Reference

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

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

List of all members.

Public Member Functions

 Coord3 ()
 Coord3 (const Coord &a, double z_)
 Coord3 (const Coord3 &xyz)
 Coord3 (double x_, double y_, double z_)
double & operator[] (int idx)
double operator[] (int idx) const
Coord3 operator+ (const Coord3 &) const
Coord3 operator- (const Coord3 &) const
Coord3 operator- () const
Coord3 operator* (double) const
Coord3 operator/ (double) const
Coord3 scaleBy (const Coord3 &) const
Coord3 unScaleBy (const Coord3 &) const
Coord3operator+= (const Coord3 &)
Coord3operator-= (const Coord3 &)
Coord3operator/= (double)
Coord3operator*= (double)
Coordcoord ()
const Coordcoord () const
bool operator== (const Coord3 &) const
bool operator!= (const Coord3 &) const
bool isDefined () const
double distTo (const Coord3 &b) const
double sqDistTo (const Coord3 &b) const
double dot (const Coord3 &b) const
Coord3 cross (const Coord3 &) const
double abs () const
double sqAbs () const
Coord3 normalize () const
void fill (char *str) const
void fill (char *, const char *start, const char *space, const char *end) const
bool use (const char *)

Static Public Member Functions

static const Coord3udf ()

Public Attributes

double z

Detailed Description

a cartesian coordinate in 3D space.


Constructor & Destructor Documentation

Coord3::Coord3 (  )  [inline]
Coord3::Coord3 ( const Coord a,
double  z_ 
) [inline]
Coord3::Coord3 ( const Coord3 xyz  )  [inline]
Coord3::Coord3 ( double  x_,
double  y_,
double  z_ 
) [inline]

Member Function Documentation

double Coord3::abs (  )  const [virtual]

Reimplemented from Geom::Point2D< double >.

Coord& Coord3::coord (  )  [inline]
const Coord& Coord3::coord (  )  const [inline]
Coord3 Coord3::cross ( const Coord3 b  )  const [inline]
double Coord3::distTo ( const Coord3 b  )  const
double Coord3::dot ( const Coord3 b  )  const [inline]
void Coord3::fill ( char *  str  )  const [inline]

Reimplemented from Coord.

void Coord3::fill ( char *  ,
const char *  start,
const char *  space,
const char *  end 
) const
bool Coord3::isDefined (  )  const [inline, virtual]

Reimplemented from Geom::Point2D< double >.

Coord3 Coord3::normalize (  )  const [inline]

Reimplemented from Coord.

bool Coord3::operator!= ( const Coord3 b  )  const [inline]
Coord3 Coord3::operator* ( double  factor  )  const [inline]

Reimplemented from Geom::Point2D< double >.

Coord3 & Coord3::operator*= ( double  factor  )  [inline, virtual]

Reimplemented from Geom::Point2D< double >.

Coord3 Coord3::operator+ ( const Coord3 p  )  const [inline]
Coord3 & Coord3::operator+= ( const Coord3 p  )  [inline]
Coord3 Coord3::operator- ( const Coord3 p  )  const [inline]
Coord3 Coord3::operator- (  )  const [inline]
Coord3 & Coord3::operator-= ( const Coord3 p  )  [inline]
Coord3 Coord3::operator/ ( double  denominator  )  const [inline]

Reimplemented from Geom::Point2D< double >.

Coord3 & Coord3::operator/= ( double  denominator  )  [inline, virtual]

Reimplemented from Geom::Point2D< double >.

bool Coord3::operator== ( const Coord3 b  )  const [inline]
double Coord3::operator[] ( int  idx  )  const [inline, virtual]

Reimplemented from Geom::Point2D< double >.

double& Coord3::operator[] ( int  idx  )  [inline, virtual]

Reimplemented from Geom::Point2D< double >.

Coord3 Coord3::scaleBy ( const Coord3 factor  )  const [inline]
double Coord3::sqAbs (  )  const [virtual]

Reimplemented from Geom::Point2D< double >.

double Coord3::sqDistTo ( const Coord3 b  )  const
static const Coord3& Coord3::udf (  )  [static]

Reimplemented from Coord.

Coord3 Coord3::unScaleBy ( const Coord3 denominator  )  const [inline]
bool Coord3::use ( const char *   ) 

Reimplemented from Coord.


Member Data Documentation

double Coord3::z