Fixes for Visual .NET and Mingw builds, and fix MacOSX notify() crash.

This commit is contained in:
Robert Osfield
2002-06-15 20:57:50 +00:00
parent 52c36dde70
commit 156a9fbaea
8 changed files with 109 additions and 36 deletions

View File

@@ -113,7 +113,7 @@ inline T RadiansToDegrees(T angle) { return angle*(T)180.0/(T)PI; }
template<typename T>
inline float computeVolume(const T& a,const T& b,const T& c,const T& d)
{
return fabs(((b-c)^(a-b))*(d-b));
return fabsf(((b-c)^(a-b))*(d-b));
}
/** compute the volume of prism */