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. More... | |
Cuboid (ValueRange< double > xRange, ValueRange< double > yRange, ValueRange< double > zRange) | |
Initialize a cuboid object. More... | |
ValueRange< double > | XRange () const noexcept |
Get the range regarding the x-axis. More... | |
void | SetXRange (ValueRange< double > xRange) noexcept |
Set the range regarding the x-axis. More... | |
ValueRange< double > | YRange () const noexcept |
Get the range regarding the y-axis. More... | |
void | SetYRange (ValueRange< double > yRange) noexcept |
Set the range regarding the y-axis. More... | |
ValueRange< double > | ZRange () const noexcept |
Get the range regarding the z-axis. More... | |
void | SetZRange (ValueRange< double > zRange) noexcept |
Set the range regarding the z-axis. More... | |
bool | Contains (Point3D< double > point) const noexcept |
Check if a point is inside the cuboid. More... | |
bool | IntersectsWith (Cuboid other) const noexcept |
Check if this cuboid intersects with another cuboid. More... | |
bool | operator== (const Cuboid &cuboid) const noexcept |
Compares to an other cuboid. More... | |
bool | operator!= (const Cuboid &cuboid) const noexcept |
Compares to an other cuboid. More... | |
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. |