#ifndef _gpuCacheIsectUtil_h_
#define _gpuCacheIsectUtil_h_
#include <maya/MPoint.h>
#include <maya/MVector.h>
#include <maya/MBoundingBox.h>
namespace GPUCache {
class gpuCacheIsectUtil
{
public:
static int intersectRayWithBox(
double isectParams[2]
);
static bool firstRayIntersection(
double* isectParam,
);
static bool intersectPlane(
static bool getClosestPointOnTri(
MPoint &theClosestPoint,
double &currDist);
static double getClosestPointOnLine(
const MPoint& queryPoint,
const MPoint& pt1,
const MPoint& pt2,
MPoint& closestPoint);
static void getClosestPointToRayOnLine(
const MPoint& vert1,
const MPoint& vert2,
const MPoint& raySource,
const MVector& rayDirection,
MPoint& closestPoint,
double& percent);
private:
};
}
#endif