26 lines
611 B
C++
26 lines
611 B
C++
#ifndef MATH
|
|
#define MATH
|
|
|
|
#include "CAABox.h"
|
|
#include "CRay.h"
|
|
#include "CVector3f.h"
|
|
#include "SRayIntersection.h"
|
|
#include <utility>
|
|
|
|
namespace Math
|
|
{
|
|
|
|
float Pow(float Base, float Exponent);
|
|
|
|
float Distance(const CVector3f& A, const CVector3f& B);
|
|
|
|
std::pair<bool,float> RayBoxIntersection(const CRay& Ray, const CAABox& Box);
|
|
|
|
std::pair<bool,float> RayTriangleIntersection(const CRay& Ray, const CVector3f& PointA,
|
|
const CVector3f& PointB, const CVector3f& PointC,
|
|
bool AllowBackfaces = false);
|
|
}
|
|
|
|
#endif // MATH
|
|
|