![]() |
libimgdoc2
|
#include <types.h>
Public Member Functions | |
| CuboidT () | |
| Default constructor. All properties are set to zero. | |
| CuboidT (t x, t y, t z, t w, t h, t d) | |
| bool | IsPointInside (const Point3dT< t > &p) const |
| Point3dT< t > | CenterPoint () const |
| bool | DoesIntersectWith (const imgdoc2::Plane_NormalAndDist< t > &plane) const |
Static Public Member Functions | |
| static bool | DoIntersect (const imgdoc2::CuboidT< t > &aabb, const imgdoc2::Plane_NormalAndDist< t > &plane) |
Structure defining an axis-aligned cuboid in three dimensions.
| t | Generic type parameter. |
|
inline |
Constructor.
| std::invalid_argument | Thrown when an invalid argument error condition occurs. |
| x | The x-coordinate of the edge point of the cuboid. |
| y | The y-coordinate of the edge point of the cuboid. |
| z | The z-coordinate of the edge point of the cuboid. |
| w | The width of the cuboid (i.e. the extent in x-direction). |
| h | The height of the cuboid (i.e. the extent in y-direction). |
| d | The depth of the cuboid (i.e. the extent in z-direction). |
|
inline |
Calculate the center point of the cuboid.
|
inline |
Test whether the specified plane is intersecting with the cuboid instance.
| plane | The plane (given in plane-and-normal representation). |
|
inlinestatic |
Test whether the specified cuboid is intersecting with the specified plane.
| aabb | The axis-aligned cuboid. |
| plane | The plane (given in plane-and-normal representation). |
|
inline |
Query if the specified point 'p' is inside the cubiod.
| p | The point to test. |