www.pudn.com > Gimcrack-v0.0051-Source.zip > math.h
#ifndef _GCMATH_H_
#define _GCMATH_H_
#include "vector.h"
#include "triangle.h"
//#include "../entity/obb.h"
#define RADIANS 57.29577951
class GcOBB;
void Swap(float & a, float & b);
float NormalizeAngle(float value);
class GcMath
{
public:
static void ProjectTriangle( const GcVector3 & V, const GcTriangle & triangle, float & min, float & max );
static void ProjectOBB( const GcVector3 & V, GcOBB & obb, float & min, float & max );
static GcVector3 ClaculateNormal(GcPoint3 p1, GcPoint3 p2, GcPoint3 p3);
};
#endif /* _GCMATH_H_ */