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

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

#include <types.h>

Inheritance diagram for imgdoc2::CuboidD:
imgdoc2::CuboidT< double >

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

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

Constructor & Destructor Documentation

◆ CuboidD()

imgdoc2::CuboidD::CuboidD ( double  x,
double  y,
double  z,
double  w,
double  h,
double  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: