Namespaces | Functions

LineSegOps.h File Reference

#include <gmtl/LineSeg.h>
#include <gmtl/RayOps.h>
Include dependency graph for LineSegOps.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 >
Point< DATA_TYPE, 3 > gmtl::findNearestPt (const LineSeg< DATA_TYPE > &lineseg, const Point< DATA_TYPE, 3 > &pt)
 Finds the closest point on the line segment to a given point.
template<class DATA_TYPE >
DATA_TYPE gmtl::distance (const LineSeg< DATA_TYPE > &lineseg, const Point< DATA_TYPE, 3 > &pt)
 Computes the shortest distance from the line segment to the given point.
template<class DATA_TYPE >
DATA_TYPE gmtl::distanceSquared (const LineSeg< DATA_TYPE > &lineseg, const Point< DATA_TYPE, 3 > &pt)
 Computes the shortest distance from the line segment to the given point.