Chaste Commit::1fd4e48e3990e67db148bc1bc4cf6991a0049d0c
ChastePoint< 0 > Class 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

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()

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

◆ operator[]()

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: