Creates an invalid cuboid.
template<typename F>
template<typename D >
Creates a cuboid equal to another cuboid.
- Parameters
-
Creates a cuboid that will fit tightly around a sphere.
- Parameters
-
Creates a cuboid based on two points, which become opposite corners of the cuboid.
- Parameters
-
in_min | The first point of the cuboid |
in_max | The second point of the cuboid |
Creates a cuboid based on an array of points. Only the minimum and maximum points are used, which become opposite corners of the cuboid. If count is 0, then an invalid cuboid is returned.
- Parameters
-
count | The size of points |
points | An array of points |
Creates a cuboid with the same dimensions as a rectangle.
- Parameters
-
that | The rectangle to create the cuboid from |
Returns true if the cuboid completely contains the parameter cuboid.
- Parameters
-
contained | The other cuboid |
Returns true if the cuboid completely contains a cuboid based on the parameter points.
- Parameters
-
contained | The points to compare against |
template<typename F>
HPS_INLINE bool Cuboid_3D< F >::Contains |
( |
Point_3D< F > const & |
contained, |
|
|
F |
epsilon |
|
) |
| const |
|
inline |
Returns true if the cuboid completely contains a cuboid based on the parameter points, with a tolerance value.
- Parameters
-
contained | The points to compare against |
epsilon | The tolerance value |
Contracts both corners of this cuboid.
- Parameters
-
Returns the diagonal vector of the cuboid.
Expands both corners of this cuboid.
- Parameters
-
template<typename F>
HPS_INLINE void Cuboid_3D< F >::Generate_Cuboid_Points |
( |
Point_3D< F > * |
points | ) |
const |
|
inline |
Assigns the eight corners of the cuboid based on the points in the parameter array. The array must contain at least eight points.
- Parameters
-
points | The array which contains points |
Replaces this cuboid with the intersection of this cuboid and the parameter cuboid.
- Parameters
-
cuboid | The cuboid to compute intersection against |
Determines whether this cuboid intersects with another cuboid.
- Parameters
-
template<typename F>
HPS_INLINE bool Cuboid_3D< F >::Intersecting |
( |
Cuboid_3D< F > const & |
cuboid, |
|
|
F const |
allowance |
|
) |
| const |
|
inline |
Determines whether this cuboid intersects with another cuboid. Allows for a tolerance value to be considered.
- Parameters
-
template<typename F>
HPS_INLINE bool Cuboid_3D< F >::Intersecting |
( |
int |
dimension, |
|
|
Cuboid_3D< F > const & |
cuboid |
|
) |
| const |
|
inline |
Returns true if this cuboid intersects with the parameter cuboid along a certain axis.
- Parameters
-
dimension | Must be either 0, 1, or 2. Corresponds to the X, Y, and Z axes. |
cuboid | The cuboid to test against |
template<typename F>
HPS_INLINE bool Cuboid_3D< F >::Intersecting |
( |
int |
dimension, |
|
|
Cuboid_3D< F > const & |
cuboid, |
|
|
F const |
allowance |
|
) |
| const |
|
inline |
Returns true if this cuboid intersects with the parameter cuboid along a certain axis, and considers a tolerance value.
- Parameters
-
dimension | Must be 0, 1, or 2. Corresponds to the X, Y, and Z axes. |
cuboid | The cuboid to test against |
allowance | The tolerance value |
Determines whether this cuboid intersects with a vector.
- Parameters
-
start | The start point of the vector |
direction | The vector |
Creates an invalid cuboid.
template<typename F>
HPS_INLINE bool Cuboid_3D< F >::IsValid |
( |
| ) |
const |
|
inline |
Tests whether this cuboid is valid. The cuboid is considered valid if the minimum point is less than or equal to the maximum point.
Merges this cuboid with another cuboid. Only the smallest and largest values of the cuboids are retained.
- Parameters
-
Merges this cuboid with another cuboid created from a sphere. Only the smallest and largest values of the cuboids are retained.
- Parameters
-
Referenced by Cuboid_3D< float >::Merge().
Expands the cuboid to include a point.
- Parameters
-
point | The point to include |
Expands this cuboid to include a set of points.
- Parameters
-
count | The number of points in points |
points | The array of points |
Determines if the maximum and minimum points of this cuboid are not equal to the maximum and minimum points of another cuboid.
- Parameters
-
Determines if the maximum and minimum points of this cuboid are equal to the maximum and minimum points of another cuboid.
- Parameters
-
Replaces this cuboid with the union of this cuboid and the parameter cuboid.
- Parameters
-
cuboid | The cuboid to compute union against |
template<typename F>
HPS_INLINE F Cuboid_3D< F >::Volume |
( |
| ) |
const |
|
inline |
Returns the volume of this cuboid.
The documentation for this struct was generated from the following file: