#include <BBox.h>
◆ center()
◆ contains()
template<class T >
bool BBox< T >::contains |
( |
const Vec3< T > & |
pos | ) |
const |
|
inline |
◆ containsXY()
template<class T >
bool BBox< T >::containsXY |
( |
T |
x, |
|
|
T |
y |
|
) |
| const |
|
inline |
◆ cubic()
template<class T >
static BBox BBox< T >::cubic |
( |
const Vec3< T > & |
center, |
|
|
T |
halfSide |
|
) |
| |
|
inlinestatic |
- Parameters
-
center | Center of the bounding box. |
halfSide | Half the length of the edge of the resulting bounding box cube. |
- Returns
- Cubic bounding box centered at
center
with sides twice the halfSide
.
◆ forCylinder()
template<class T >
static BBox BBox< T >::forCylinder |
( |
const Vec3< T > |
bottomCenter, |
|
|
T |
radius, |
|
|
T |
height |
|
) |
| |
|
inlinestatic |
◆ forPoints()
- Parameters
-
- Returns
- Bounding box containing both passed points.
◆ intersects()
template<class T >
template<class U >
bool BBox< T >::intersects |
( |
const BBox< U > & |
other | ) |
const |
|
inline |
◆ intersectsCube()
template<class T >
template<class U , class V >
bool BBox< T >::intersectsCube |
( |
const Vec3< U > & |
center, |
|
|
V |
halfSide |
|
) |
| const |
|
inline |
◆ intersectsCuboid()
template<class T >
template<class U >
bool BBox< T >::intersectsCuboid |
( |
const Vec3< U > & |
center, |
|
|
const Vec3< U > & |
halfSize |
|
) |
| const |
|
inline |
◆ size()
◆ operator|
◆ x1
◆ x2
◆ y1
◆ y2
◆ z1
◆ z2
The documentation for this struct was generated from the following file: