Add wrappers for the standard math library

Simplifies transition to software based math libraries
for projects requiring determinism.
This commit is contained in:
Matthew Endsley
2013-09-15 20:09:01 -07:00
parent 7b065f5e0c
commit b0e4e6a834
13 changed files with 64 additions and 40 deletions
+2 -2
View File
@@ -16,13 +16,13 @@
// 3. This notice may not be removed or altered from any source distribution.
//
#include <math.h>
#include <float.h>
#include <string.h>
#include "DetourNavMeshQuery.h"
#include "DetourNavMesh.h"
#include "DetourNode.h"
#include "DetourCommon.h"
#include "DetourMath.h"
#include "DetourAlloc.h"
#include "DetourAssert.h"
#include <new>
@@ -3342,7 +3342,7 @@ dtStatus dtNavMeshQuery::findDistanceToWall(dtPolyRef startRef, const float* cen
dtVsub(hitNormal, centerPos, hitPos);
dtVnormalize(hitNormal);
*hitDist = sqrtf(radiusSqr);
*hitDist = dtMathSqrtf(radiusSqr);
return status;
}