Fixed incorrect parameter passed into AlmostEqual() which caused the function to always return true. Recompiled mathlib.

This commit is contained in:
Jordan Cristiano 2013-06-27 01:19:23 -04:00
parent 39ed87570b
commit 823818305d
4 changed files with 6 additions and 6 deletions

Binary file not shown.

View file

@ -2172,9 +2172,9 @@ bool AlmostEqual(float a, float b, int maxUlps = 10);
inline bool AlmostEqual( const Vector &a, const Vector &b, int maxUlps = 10)
{
return AlmostEqual( a.x, a.x, maxUlps ) &&
AlmostEqual( a.y, a.y, maxUlps ) &&
AlmostEqual( a.z, a.z, maxUlps );
return AlmostEqual( a.x, b.x, maxUlps ) &&
AlmostEqual( a.y, b.y, maxUlps ) &&
AlmostEqual( a.z, b.z, maxUlps );
}

Binary file not shown.

View file

@ -2172,9 +2172,9 @@ bool AlmostEqual(float a, float b, int maxUlps = 10);
inline bool AlmostEqual( const Vector &a, const Vector &b, int maxUlps = 10)
{
return AlmostEqual( a.x, a.x, maxUlps ) &&
AlmostEqual( a.y, a.y, maxUlps ) &&
AlmostEqual( a.z, a.z, maxUlps );
return AlmostEqual( a.x, b.x, maxUlps ) &&
AlmostEqual( a.y, b.y, maxUlps ) &&
AlmostEqual( a.z, b.z, maxUlps );
}