3D rectangle in the X, Y and Z domain. More...
#include <cvb/cuboid.hpp>
Public Member Functions | |
| Cuboid () noexcept=default | |
| Creates a default cuboid with value ranges from 0.0 to 0.0. | |
| Cuboid (ValueRange< double > xRange, ValueRange< double > yRange, ValueRange< double > zRange) | |
| Initialize a cuboid object. | |
| ValueRange< double > | XRange () const noexcept |
| Get the range regarding the x-axis. | |
| void | SetXRange (ValueRange< double > xRange) noexcept |
| Set the range regarding the x-axis. | |
| ValueRange< double > | YRange () const noexcept |
| Get the range regarding the y-axis. | |
| void | SetYRange (ValueRange< double > yRange) noexcept |
| Set the range regarding the y-axis. | |
| ValueRange< double > | ZRange () const noexcept |
| Get the range regarding the z-axis. | |
| void | SetZRange (ValueRange< double > zRange) noexcept |
| Set the range regarding the z-axis. | |
| bool | Contains (Point3D< double > point) const noexcept |
| Check if a point is inside the cuboid. | |
| bool | IntersectsWith (Cuboid other) const noexcept |
| Check if this cuboid intersects with another cuboid. | |
| bool | operator== (const Cuboid &cuboid) const noexcept |
| Compares to an other cuboid. | |
| bool | operator!= (const Cuboid &cuboid) const noexcept |
| Compares to an other cuboid. | |
3D rectangle in the X, Y and Z domain.
Region resembling a cube with its faces having not necessarily equal sizes.
|
defaultnoexcept |
Creates a default cuboid with value ranges from 0.0 to 0.0.
| Does | not throw any exception. |
|
inline |
Initialize a cuboid object.
| [in] | xRange | Range regarding the x-axis. |
| [in] | yRange | Range regarding the y-axis. |
| [in] | zRange | Range regarding the z-axis. |
| Any | exception derived from std::exception including CvbException. |
|
inlinenoexcept |
Check if a point is inside the cuboid.
| [in] | point | Point to be checked. |
| Does | not throw any exception. |
|
inlinenoexcept |
Check if this cuboid intersects with another cuboid.
| [in] | other | Cuboid for intersection test. |
| Does | not throw any exception. |
|
inlinenoexcept |
Compares to an other cuboid.
| [in] | cuboid | Other cuboid. |
| Does | not throw any exception. |
|
inlinenoexcept |
Compares to an other cuboid.
| [in] | cuboid | Other cuboid. |
| Does | not throw any exception. |
|
inlinenoexcept |
Set the range regarding the x-axis.
| [in] | xRange | The new range. |
| Does | not throw any exception. |
|
inlinenoexcept |
Set the range regarding the y-axis.
| [in] | yRange | The new range. |
| Does | not throw any exception. |
|
inlinenoexcept |
Set the range regarding the z-axis.
| [in] | zRange | The new range. |
| Does | not throw any exception. |
|
inlinenoexcept |
Get the range regarding the x-axis.
| Does | not throw any exception. |
|
inlinenoexcept |
Get the range regarding the y-axis.
| Does | not throw any exception. |
|
inlinenoexcept |
Get the range regarding the z-axis.
| Does | not throw any exception. |