#include <CryptProjectionStatistics.hpp>
Public Member Functions | |
CryptProjectionStatistics (MeshBasedCellPopulation< 2 > &rCrypt) | |
std::vector< CellPtr > | GetCryptSection (double angle=DBL_MAX) |
Private Member Functions | |
bool | CellIsInSection (double angle, const c_vector< double, 2 > &rCellPosition, double widthOfSection=0.6) |
Definition at line 36 of file CryptProjectionStatistics.hpp.
CryptProjectionStatistics::CryptProjectionStatistics | ( | MeshBasedCellPopulation< 2 > & | rCrypt | ) |
Constructor.
rCrypt | The crypt |
Definition at line 40 of file CryptProjectionStatistics.cpp.
bool CryptProjectionStatistics::CellIsInSection | ( | double | angle, | |
const c_vector< double, 2 > & | rCellPosition, | |||
double | widthOfSection = 0.6 | |||
) | [private] |
CellIsInSection method.
angle | The angle between the crypt section and the x axis in the projection | |
rCellPosition | The vector of a cell's position | |
widthOfSection | The width of the section |
Definition at line 45 of file CryptProjectionStatistics.cpp.
Referenced by GetCryptSection().
std::vector< CellPtr > CryptProjectionStatistics::GetCryptSection | ( | double | angle = DBL_MAX |
) |
GetCryptSection method. Takes in an angle from the interval (-pi, pi].
angle | The angle between the crypt section and the x axis in the projection |
Definition at line 57 of file CryptProjectionStatistics.cpp.
References AbstractCellPopulation< DIM >::Begin(), CellIsInSection(), AbstractCellPopulation< DIM >::End(), AbstractCentreBasedCellPopulation< DIM >::GetLocationOfCellCentre(), RandomNumberGenerator::Instance(), AbstractCryptStatistics::mrCrypt, and RandomNumberGenerator::ranf().