|
HPS_INLINE bool | Contains (Cuboid_3D const &contained) const |
|
HPS_INLINE bool | Contains (Point_3D< F > const &contained) const |
|
HPS_INLINE bool | Contains (Point_3D< F > const &contained, F epsilon) const |
|
HPS_INLINE Cuboid_3D & | Contract (F border) |
|
| Cuboid_3D () |
|
template<typename D > |
| Cuboid_3D (Cuboid_3D< D > const &that) |
|
| Cuboid_3D (Sphere_3D< F > const &that) |
|
| Cuboid_3D (Point_3D< F > const &in_min, Point_3D< F > const &in_max) |
|
| Cuboid_3D (size_t count, Point_3D< F > const *points) |
|
| Cuboid_3D (Rectangle const &that) |
|
HPS_INLINE Vector_3D< F > | Diagonal () const |
|
HPS_INLINE Cuboid_3D & | Expand (F border) |
|
HPS_INLINE void | Generate_Cuboid_Points (Point_3D< F > *points) const |
|
HPS_INLINE Cuboid_3D & | Intersect (Cuboid_3D const &cuboid) |
|
HPS_INLINE bool | Intersecting (Cuboid_3D const &cuboid) const |
|
HPS_INLINE bool | Intersecting (Cuboid_3D const &cuboid, F const allowance) const |
|
HPS_INLINE bool | Intersecting (int dimension, Cuboid_3D const &cuboid) const |
|
HPS_INLINE bool | Intersecting (int dimension, Cuboid_3D const &cuboid, F const allowance) const |
|
HPS_INLINE bool | Intersecting (Point_3D< F > const &start, Vector_3D< F > const &direction) const |
|
HPS_INLINE bool | Intersecting (Point_3D< F > const &point1, Point_3D< F > const &point2) const |
|
void | Invalidate () |
|
HPS_INLINE bool | IsValid () const |
|
HPS_INLINE void | Merge (Cuboid_3D const &cuboid) |
|
HPS_INLINE void | Merge (Sphere_3D< F > const &sphere) |
|
HPS_INLINE void | Merge (Point_3D< F > const &point) |
|
void | Merge (size_t count, Point_3D< F > const *points) |
|
HPS_INLINE bool | operator!= (Cuboid_3D const &cuboid) const |
|
HPS_INLINE bool | operator== (Cuboid_3D const &cuboid) const |
|
HPS_INLINE Cuboid_3D & | Union (Cuboid_3D const &cuboid) |
|
HPS_INLINE F | Volume () const |
|
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 |
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
-
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
-
Determines whether this cuboid intersects with another cuboid. Allows for a tolerance value to be considered.
- Parameters
-
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 HPS::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 ray.
- Parameters
-
start | The start point of the ray. |
direction | The direction of the ray. |
Determines whether this cuboid intersects with an infinite line.
- Parameters
-
point1 | A point on the line. |
point2 | A different point on the line. |
Creates an invalid cuboid.
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
-
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 |
Returns the volume of this cuboid.
The maximum point of this cuboid
The minimum point of this cuboid
The documentation for this struct was generated from the following file: