Structure defining an axis-aligned cuboid in three dimensions with doubles representing the coordinates.
More...
#include <types.h>
|
| CuboidD (double x, double y, double z, double w, double h, double d) |
|
| CuboidT () |
| Default constructor. All properties are set to zero.
|
|
| CuboidT (double x, double y, double z, double w, double h, double d) |
|
bool | IsPointInside (const Point3dT< double > &p) const |
|
Point3dT< double > | CenterPoint () const |
|
bool | DoesIntersectWith (const imgdoc2::Plane_NormalAndDist< double > &plane) const |
|
|
static bool | DoIntersect (const imgdoc2::CuboidT< double > &aabb, const imgdoc2::Plane_NormalAndDist< double > &plane) |
|
double | x |
| The x-coordinate of the edge point of the cuboid.
|
|
double | y |
| The y-coordinate of the edge point of the cuboid.
|
|
double | z |
| The z-coordinate of the edge point of the cuboid.
|
|
double | w |
| The width of the cuboid (i.e. the extent in x-direction).
|
|
double | h |
| The height of the cuboid (i.e. the extent in y-direction).
|
|
double | d |
| The depth of the cuboid (i.e. the extent in z-direction).
|
|
Structure defining an axis-aligned cuboid in three dimensions with doubles representing the coordinates.
◆ CuboidD()
imgdoc2::CuboidD::CuboidD |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
double |
w, |
|
|
double |
h, |
|
|
double |
d |
|
) |
| |
|
inline |
Constructor.
- Exceptions
-
std::invalid_argument | Thrown when an invalid argument error condition occurs. |
- Parameters
-
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). |
The documentation for this struct was generated from the following file: