libimgdoc2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
imgdoc2::CuboidF Struct Reference

Structure defining an axis-aligned cuboid in three dimensions with floats representing the coordinates. More...

#include <types.h>

Inheritance diagram for imgdoc2::CuboidF:
imgdoc2::CuboidT< float >

Public Member Functions

 CuboidF (float x, float y, float z, float w, float h, float d)
 
- Public Member Functions inherited from imgdoc2::CuboidT< float >
 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
 

Additional Inherited Members

- Static Public Member Functions inherited from imgdoc2::CuboidT< float >
static bool DoIntersect (const imgdoc2::CuboidT< float > &aabb, const imgdoc2::Plane_NormalAndDist< float > &plane)
 
- Public Attributes inherited from imgdoc2::CuboidT< float >
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).
 

Detailed Description

Structure defining an axis-aligned cuboid in three dimensions with floats representing the coordinates.

Constructor & Destructor Documentation

◆ CuboidF()

imgdoc2::CuboidF::CuboidF ( float  x,
float  y,
float  z,
float  w,
float  h,
float  d 
)
inline

Constructor.

Exceptions
std::invalid_argumentThrown when an invalid argument error condition occurs.
Parameters
xThe x-coordinate of the edge point of the cuboid.
yThe y-coordinate of the edge point of the cuboid.
zThe z-coordinate of the edge point of the cuboid.
wThe width of the cuboid (i.e. the extent in x-direction).
hThe height of the cuboid (i.e. the extent in y-direction).
dThe depth of the cuboid (i.e. the extent in z-direction).

The documentation for this struct was generated from the following file: