afl::Simplex Class Reference

#include <simplex.h>

List of all members.

Public Member Functions

 Simplex ()
 Simplex (const Point &x, const Point &y)
 Simplex (const Point &x, const Point &y, const Point &z)
 Simplex (const Point &x, const Point &y, const Point &z, const Point &t)
 Simplex (const Point &x, const Point &y, const Point &z, const Point &t, const Point &w)
size_t getDimension () const
const Pointoperator[] (size_t t) const
Pointoperator[] (size_t t)


Detailed Description

class Simplex describes a point in 1,2,3 or 4 D space


Constructor & Destructor Documentation

afl::Simplex::Simplex  ) 
 

default constructor

afl::Simplex::Simplex const Point x,
const Point y
 

constructs a new 1D simplex

Parameters:
x a vertex of the simplex
y a vertex of the simplex

afl::Simplex::Simplex const Point x,
const Point y,
const Point z
 

constructs a new 2D simplex

Parameters:
x a vertex of the simplex
y a vertex of the simplex
z a vertex of the simplex

afl::Simplex::Simplex const Point x,
const Point y,
const Point z,
const Point t
 

constructs a new 3D simplex

Parameters:
x a vertex of the simplex
y a vertex of the simplex
z a vertex of the simplex
t a vertex of the simplex

afl::Simplex::Simplex const Point x,
const Point y,
const Point z,
const Point t,
const Point w
 

constructs a new 4D simplex

Parameters:
x a vertex of the simplex
y a vertex of the simplex
z a vertex of the simplex
t a vertex of the simplex
w a vertex of the simplex


Member Function Documentation

size_t afl::Simplex::getDimension  )  const
 

Returns:
the dimension of the node (1,2,3 or 4)

Point& afl::Simplex::operator[] size_t  t  ) 
 

Returns:
one of the vertices of the simplex
Exceptions:
ddf::OutOfBoundsException if t is too big for the simplex

const Point& afl::Simplex::operator[] size_t  t  )  const
 

Returns:
one of the vertices of the simplex
Exceptions:
ddf::OutOfBoundsException if t is too big for the simplex


The documentation for this class was generated from the following file:
Generated on Fri Dec 22 07:17:51 2006 for afl by  doxygen 1.4.6