#include <ChasteEllipsoid.hpp>
Inherits AbstractChasteRegion< SPACE_DIM >.
Public Member Functions | |
ChasteEllipsoid (ChastePoint< SPACE_DIM > &rCentre, ChastePoint< SPACE_DIM > &rRadii) | |
bool | DoesContain (const ChastePoint< SPACE_DIM > &rPointToCheck) const |
const ChastePoint< SPACE_DIM > & | rGetCentre () const |
const ChastePoint< SPACE_DIM > & | rGetRadii () const |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
ChastePoint< SPACE_DIM > | mCentre |
ChastePoint< SPACE_DIM > | mRadii |
Friends | |
class | boost::serialization::access |
This class defines a 3D ellipsoid and provides a method to check if a given point is contained in the volume.
Definition at line 45 of file ChasteEllipsoid.hpp.
ChasteEllipsoid< SPACE_DIM >::ChasteEllipsoid | ( | ChastePoint< SPACE_DIM > & | rCentre, | |
ChastePoint< SPACE_DIM > & | rRadii | |||
) | [inline] |
The (axis aligned) ellipsoid is defined by its centre and its radii in the x, y and z directions.
rCentre | Centre of the ellipsoid. | |
rRadii | Radii of the ellipsoid. |
Definition at line 33 of file ChasteEllipsoid.cpp.
References EXCEPTION, and ChasteEllipsoid< SPACE_DIM >::mRadii.
bool ChasteEllipsoid< SPACE_DIM >::DoesContain | ( | const ChastePoint< SPACE_DIM > & | rPointToCheck | ) | const [virtual] |
Checks if a given point is contained in the ellipsoid.
rPointToCheck | Point to be checked to be contained in the ellipsoid. |
Implements AbstractChasteRegion< SPACE_DIM >.
const ChastePoint< SPACE_DIM > & ChasteEllipsoid< SPACE_DIM >::rGetCentre | ( | ) | const [inline] |
Get Doxygen to ignore, since it's confused by explicit instantiation of templated methods Get Doxygen to ignore, since it's confused by explicit instantiation of templated methods Get Doxygen to ignore, since it's confused by explicit instantiation of templated methods
Definition at line 118 of file ChasteEllipsoid.cpp.
References ChasteEllipsoid< SPACE_DIM >::mCentre.
const ChastePoint< SPACE_DIM > & ChasteEllipsoid< SPACE_DIM >::rGetRadii | ( | ) | const [inline] |
Definition at line 124 of file ChasteEllipsoid.cpp.
References ChasteEllipsoid< SPACE_DIM >::mRadii.
void ChasteEllipsoid< SPACE_DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Archive the member variables.
archive | ||
version |
Reimplemented from AbstractChasteRegion< SPACE_DIM >.
Definition at line 56 of file ChasteEllipsoid.hpp.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractChasteRegion< SPACE_DIM >.
Definition at line 48 of file ChasteEllipsoid.hpp.
ChastePoint<SPACE_DIM> ChasteEllipsoid< SPACE_DIM >::mCentre [private] |
Centre of the ellipsoid.
Definition at line 63 of file ChasteEllipsoid.hpp.
Referenced by ChasteEllipsoid< SPACE_DIM >::rGetCentre().
ChastePoint<SPACE_DIM> ChasteEllipsoid< SPACE_DIM >::mRadii [private] |
Radii of the ellipsoid.
Definition at line 66 of file ChasteEllipsoid.hpp.
Referenced by ChasteEllipsoid< SPACE_DIM >::ChasteEllipsoid(), and ChasteEllipsoid< SPACE_DIM >::rGetRadii().