Chaste  Release::2018.1
ChastePoint< 0 > Class Template Reference

#include <ChastePoint.hpp>

+ Collaboration diagram for ChastePoint< 0 >:

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 197 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
v1the point's x-coordinate (defaults to 0)
v2the point's y-coordinate (defaults to 0)
v3the point's z-coordinate (defaults to 0)

Definition at line 131 of file ChastePoint.cpp.

Member Function Documentation

double ChastePoint< 0 >::operator[] ( unsigned  i) const
Returns
Access the vector mLocation. Actually raises an exception, since a 0d point has no location.
Parameters
ithe index of the vector to return

Definition at line 135 of file ChastePoint.cpp.

References EXCEPTION.


The documentation for this class was generated from the following files: