ChastePoint< 0 > Class Template Reference

#include <ChastePoint.hpp>

List of all members.

Public Member Functions

 ChastePoint (double v1=0, double v2=0, double v3=0)
double operator[] (unsigned i) const

Detailed Description

template<>
class ChastePoint< 0 >

A zero-dimensional ChastePoint class. We need to specialise the entire class to avoid nonsense methods that don't make sense for 0d.

Definition at line 185 of file ChastePoint.hpp.


Constructor & Destructor Documentation

ChastePoint< 0 >::ChastePoint ( double  v1 = 0,
double  v2 = 0,
double  v3 = 0 
)

Create a zero-dimensional Point object. There are 3 optional arguments, which should not be used.

Parameters:
v1 the point's x-coordinate (defaults to 0)
v2 the point's y-coordinate (defaults to 0)
v3 the point's z-coordinate (defaults to 0)

Definition at line 118 of file ChastePoint.cpp.


Member Function Documentation

double ChastePoint< 0 >::operator[] ( unsigned  i  )  const

Access the vector mLocation. Actually raises an exception, since a 0d point has no location.

Parameters:
i the index of the vector to return

Definition at line 122 of file ChastePoint.cpp.

References EXCEPTION.


The documentation for this class was generated from the following files:
Generated on Thu Dec 22 13:03:27 2011 for Chaste by  doxygen 1.6.3