#include <gmtl/LineSeg.h>
#include <gmtl/RayOps.h>
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. |