Main Page   Namespace List   Class Hierarchy   Compound List   File List   Header Files   Sources   Namespace Members   Compound Members   File Members  

delaunay::edge Class Reference

A line segment connecting two points. More...

#include <delaunay.h>

List of all members.


Public Members

 edge ( const vector2 &v0, const vector2 &v1 )
The only constructur for an edge. More...

 ~edge (void)
const vector2vertex ( const unsigned i ) const
Get one of the points at the ends of the line segment. More...


Friends

bool operator== ( const edge &a, const edge &b )
Compare two edge objects for equality. More...


Detailed Description

A line segment connecting two points.

Definition at line 43 of file delaunay.h.


Member Function Documentation

delaunay::edge::edge (const vector2 & v0, const vector2 & v1) [inline]

The only constructur for an edge.

Parameters:
v0   a point at one end of the line segment
v1   the point at the other end of the line segment

Postconditions:
 assert( this->vertex(0) == v0 );
 assert( this->vertex(1) == v1 );

Definition at line 496 of file delaunay.h.

delaunay::edge::~edge (void) [inline]

Definition at line 511 of file delaunay.h.

const vector2 & delaunay::edge::vertex (const unsigned i) const [inline]

Get one of the points at the ends of the line segment.

Parameters:
i   which of the two points to get
Returns:
the requested point

Preconditions:
 assert( i == 0 || i == 1 );

Definition at line 518 of file delaunay.h.


Friends And Related Function Documentation

bool operator== (const edge & a, const edge & b) [friend]

Compare two edge objects for equality.

Parameters:
a   one of the two edge objects to compare
b   the other edge object
Returns:
true iff the two edge objects are equal

Invariants:
The ordering of the two points that define the edge is not important:
 assert( edge(a, b) == edge(a, b) );
 assert( edge(a, b) == edge(b, a) );
Otherwise, two edge objects are not equal.

The documentation for this class was generated from the following file:
Generated at Sun Jul 14 20:38:17 2002 for Mapper by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999