Main Page   Class Hierarchy   Compound List   File List   Compound Members  

Coord3D Class Reference

Three-dimensional coordinates in float space. More...

#include <mcoord.h>

Inheritance diagram for Coord3D::

Object List of all members.

Public Methods

 Coord3D (float x0=0, float y0=0, float z0=0)
 Coord3D (const Coord2D &o)
Coord3D& operator= (const Coord3D &o)
void operator+= (const Coord3D &o)
Coord3D operator/ (double d) const
Coord3D operator * (double m) const
Coord3D operator- (const Coord3D &o) const
Coord3D operator- () const
void copy (const Coord3D &o)
void copy (const Coord2D &o)
void moveTo (float x1, float y1, float z1)
void moveBy (float x1, float y1, float z1)
void operator>> (OStream &o) const
float dist (const Coord3D &o) const
float sqdist (const Coord3D &o) const

Public Attributes

float x
float y
float z

Detailed Description

Three-dimensional coordinates in float space.

Definition at line 70 of file mcoord.h.


Member Function Documentation

float dist ( const Coord3D & o ) const [inline]
 

Computes distance between this and the other point.

See also:
sqdist

Definition at line 93 of file mcoord.h.

void operator>> ( OStream & o ) const [inline, virtual]
 

Ordinary free-formatted printout.

Reimplemented from Object.

Definition at line 87 of file mcoord.h.

float sqdist ( const Coord3D & o ) const [inline]
 

Computes squared distance between this and the other point.

See also:
dist

Definition at line 99 of file mcoord.h.


The documentation for this class was generated from the following file:
Generated at Tue Dec 4 19:53:29 2001 for MagiC++ by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001