Namespaces

PlaneOps.h File Reference

#include <gmtl/Defines.h>
#include <gmtl/Plane.h>
#include <gmtl/Math.h>
Include dependency graph for PlaneOps.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

Plane Operations

template<class DATA_TYPE >
DATA_TYPE gmtl::distance (const Plane< DATA_TYPE > &plane, const Point< DATA_TYPE, 3 > &pt)
 Computes the distance from the plane to the point.
template<class DATA_TYPE >
PlaneSide gmtl::whichSide (const Plane< DATA_TYPE > &plane, const Point< DATA_TYPE, 3 > &pt)
 Determines which side of the plane the given point lies.
template<class DATA_TYPE >
PlaneSide gmtl::whichSide (const Plane< DATA_TYPE > &plane, const Point< DATA_TYPE, 3 > &pt, const DATA_TYPE &eps)
 Determines which side of the plane the given point lies with the given epsilon tolerance.
template<class DATA_TYPE >
DATA_TYPE gmtl::findNearestPt (const Plane< DATA_TYPE > &plane, const Point< DATA_TYPE, 3 > &pt, Point< DATA_TYPE, 3 > &result)
 Finds the point on the plane that is nearest to the given point.
template<class DATA_TYPE , unsigned SIZE>
void gmtl::reflect (Point< DATA_TYPE, SIZE > &result, const Plane< DATA_TYPE > &plane, const Point< DATA_TYPE, SIZE > &point)
 Mirror the point by the plane.
Plane Comparitors

template<class DATA_TYPE >
bool gmtl::operator== (const Plane< DATA_TYPE > &p1, const Plane< DATA_TYPE > &p2)
 Compare two planes to see if they are EXACTLY the same.
template<class DATA_TYPE >
bool gmtl::operator!= (const Plane< DATA_TYPE > &p1, const Plane< DATA_TYPE > &p2)
 Compare two planes to see if they are not EXACTLY the same.
template<class DATA_TYPE >
bool gmtl::isEqual (const Plane< DATA_TYPE > &p1, const Plane< DATA_TYPE > &p2, const DATA_TYPE &eps)
 Compare two planes to see if they are the same within the given tolerance.