//#include "Carbon.h"
#include "math.h"
-#include "Physicsmath.h"
-#include "gl.h"
+#include "PhysicsMath.h"
+#include "gamegl.h"
/**> Quaternion Structures <**/
#define PI 3.14159265355555897932384626
float x;
float y;
float z;
+ XYZ() : x(0.0f), y(0.0f), z(0.0f) {}
inline XYZ operator+(XYZ add);
inline XYZ operator-(XYZ add);
inline XYZ operator*(float add);
inline float fast_sqrt (register float arg)
{
-#ifdef WIN32
- return sqrtf( arg);
-#else
+#if PLATFORM_MACOSX
// Can replace with slower return std::sqrt(arg);
register float result;
result = result + 0.5 * result * (1.0 - arg * result * result);
return result * arg;
+#else
+ return sqrtf( arg);
#endif
}
return 1;
}
-#endif
\ No newline at end of file
+#endif