#include <ChasteCuboid.hpp>
Public Member Functions | |
ChasteCuboid (ChastePoint< 3 > &rPointA, ChastePoint< 3 > &rPointB) | |
bool | DoesContain (const ChastePoint< 3U > &rPointToCheck) |
bool | DoesContain (const ChastePoint< 2U > &rPointToCheck) |
bool | DoesContain (const ChastePoint< 1U > &rPointToCheck) |
Private Attributes | |
ChastePoint< 3 > | mrPointA |
ChastePoint< 3 > | mrPointB |
Definition at line 39 of file ChasteCuboid.hpp.
ChasteCuboid::ChasteCuboid | ( | ChastePoint< 3 > & | rPointA, | |
ChastePoint< 3 > & | rPointB | |||
) |
The cuboid is defined by any of its two space-diagonal opposite corners.
rPointA | Any vertex of the cuboid. | |
rPointB | The space-diagonal opposite corner of pointA. |
Definition at line 32 of file ChasteCuboid.cpp.
bool ChasteCuboid::DoesContain | ( | const ChastePoint< 3U > & | rPointToCheck | ) |
rPointToCheck | Point to be checked to be contained in the cuboid. |
Definition at line 43 of file ChasteCuboid.cpp.
bool ChasteCuboid::DoesContain | ( | const ChastePoint< 2U > & | rPointToCheck | ) |
Checks if a given 2D point is contained in the cuboid.
rPointToCheck | Point to be checked to be contained in the cuboid. |
Definition at line 58 of file ChasteCuboid.cpp.
bool ChasteCuboid::DoesContain | ( | const ChastePoint< 1U > & | rPointToCheck | ) |
Checks if a given 1D point is contained in the cuboid.
rPointToCheck | Point to be checked to be contained in the cuboid. |
Definition at line 74 of file ChasteCuboid.cpp.
ChastePoint<3> ChasteCuboid::mrPointA [private] |
A vertex of the cuboid.
Definition at line 44 of file ChasteCuboid.hpp.
Referenced by ChasteCuboid(), and DoesContain().
ChastePoint<3> ChasteCuboid::mrPointB [private] |
The space-diagonal opposite corner of mrPointA.
Definition at line 47 of file ChasteCuboid.hpp.
Referenced by ChasteCuboid(), and DoesContain().