Structure defining an axis-aligned cuboid in three dimensions with floats representing the coordinates.
More...
#include <types.h>
|
| | CuboidF (float x, float y, float z, float w, float h, float d) |
| |
|
| CuboidT () |
| | Default constructor. All properties are set to zero.
|
| |
| | CuboidT (float x, float y, float z, float w, float h, float d) |
| |
| bool | IsPointInside (const Point3dT< float > &p) const |
| |
| Point3dT< float > | CenterPoint () const |
| |
| bool | DoesIntersectWith (const imgdoc2::Plane_NormalAndDist< float > &plane) const |
| |
|
| static bool | DoIntersect (const imgdoc2::CuboidT< float > &aabb, const imgdoc2::Plane_NormalAndDist< float > &plane) |
| |
|
float | x |
| | The x-coordinate of the edge point of the cuboid.
|
| |
|
float | y |
| | The y-coordinate of the edge point of the cuboid.
|
| |
|
float | z |
| | The z-coordinate of the edge point of the cuboid.
|
| |
|
float | w |
| | The width of the cuboid (i.e. the extent in x-direction).
|
| |
|
float | h |
| | The height of the cuboid (i.e. the extent in y-direction).
|
| |
|
float | d |
| | The depth of the cuboid (i.e. the extent in z-direction).
|
| |
Structure defining an axis-aligned cuboid in three dimensions with floats representing the coordinates.
◆ CuboidF()
| imgdoc2::CuboidF::CuboidF |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z, |
|
|
float |
w, |
|
|
float |
h, |
|
|
float |
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: