Namespaces | Functions | Variables

Containment.h File Reference

#include <vector>
#include <gmtl/Sphere.h>
#include <gmtl/AABox.h>
#include <gmtl/Frustum.h>
#include <gmtl/Tri.h>
#include <gmtl/VecOps.h>
Include dependency graph for Containment.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  gmtl
 

Meta programming classes.


Functions

template<class DATA_TYPE >
bool gmtl::isInVolume (const Sphere< DATA_TYPE > &container, const Point< DATA_TYPE, 3 > &pt)
 Tests if the given point is inside or on the surface of the given spherical volume.
template<class DATA_TYPE >
bool gmtl::isInVolume (const Sphere< DATA_TYPE > &container, const Sphere< DATA_TYPE > &sphere)
 Tests if the given sphere is completely inside or on the surface of the given spherical volume.
template<class DATA_TYPE >
void gmtl::extendVolume (Sphere< DATA_TYPE > &container, const Point< DATA_TYPE, 3 > &pt)
 Modifies the existing sphere to tightly enclose itself and the given point.
template<class DATA_TYPE >
void gmtl::extendVolume (Sphere< DATA_TYPE > &container, const Sphere< DATA_TYPE > &sphere)
 Modifies the container to tightly enclose itself and the given sphere.
template<class DATA_TYPE >
void gmtl::makeVolume (Sphere< DATA_TYPE > &container, const std::vector< Point< DATA_TYPE, 3 > > &pts)
 Modifies the given sphere to tightly enclose all points in the given std::vector.
template<class DATA_TYPE >
bool gmtl::isOnVolume (const Sphere< DATA_TYPE > &container, const Point< DATA_TYPE, 3 > &pt)
 Modifies the given sphere to tightly enclose all spheres in the given std::vector.
template<class DATA_TYPE >
bool gmtl::isOnVolume (const Sphere< DATA_TYPE > &container, const Point< DATA_TYPE, 3 > &pt, const DATA_TYPE &tol)
 Tests of the given point is on the surface of the container with the given tolerance.
template<class DATA_TYPE >
bool gmtl::isInVolume (const AABox< DATA_TYPE > &container, const Point< DATA_TYPE, 3 > &pt)
 Tests if the given point is inside (or on) the surface of the given AABox volume.
template<class DATA_TYPE >
bool gmtl::isInVolumeExclusive (const AABox< DATA_TYPE > &container, const Point< DATA_TYPE, 3 > &pt)
 Tests if the given point is inside (not on) the surface of the given AABox volume.
template<class DATA_TYPE >
bool gmtl::isInVolume (const AABox< DATA_TYPE > &container, const AABox< DATA_TYPE > &box)
 Tests if the given AABox is completely inside or on the surface of the given AABox container.
template<class DATA_TYPE >
void gmtl::extendVolume (AABox< DATA_TYPE > &container, const Point< DATA_TYPE, 3 > &pt)
 Modifies the existing AABox to tightly enclose itself and the given point.
template<class DATA_TYPE >
void gmtl::extendVolume (AABox< DATA_TYPE > &container, const AABox< DATA_TYPE > &box)
 Modifies the container to tightly enclose itself and the given AABox.
template<class DATA_TYPE >
void gmtl::makeVolume (AABox< DATA_TYPE > &box, const Sphere< DATA_TYPE > &sph)
 Creates an AABox that tightly encloses the given Sphere.
template<typename T >
bool gmtl::isInVolume (const Frustum< T > &f, const Point< T, 3 > &p, unsigned int &idx)
template<typename T >
bool gmtl::isInVolume (const Frustum< T > &f, const Sphere< T > &s)
template<typename T >
bool gmtl::isInVolume (const Frustum< T > &f, const AABox< T > &box)
template<typename T >
bool gmtl::isInVolume (const Frustum< T > &f, const Tri< T > &tri)

Variables

const unsigned int gmtl::IN_FRONT_OF_ALL_PLANES = 6