mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-26 07:32:45 +00:00
Fixes tests compilation after ebfec91057. Found by Angen.
Reviewed By: Angen Differential Revision: https://code.wildfiregames.com/D1937 This was SVN commit r22321.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "maths/MathUtil.h"
|
||||
#include "maths/Vector3D.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <vector>
|
||||
|
||||
class TestCamera : public CxxTest::TestSuite
|
||||
@@ -83,11 +84,11 @@ public:
|
||||
bool EqualPlanes(const CPlane& p1, const CPlane& p2) const
|
||||
{
|
||||
const float EPS = 1e-3f;
|
||||
if (std::fabsf(p1.m_Dist - p2.m_Dist) >= EPS)
|
||||
if (std::fabs(p1.m_Dist - p2.m_Dist) >= EPS)
|
||||
return false;
|
||||
return
|
||||
std::fabsf(p1.m_Norm.X - p2.m_Norm.X) < EPS &&
|
||||
std::fabsf(p1.m_Norm.Y - p2.m_Norm.Y) < EPS &&
|
||||
std::fabsf(p1.m_Norm.Z - p2.m_Norm.Z) < EPS;
|
||||
std::fabs(p1.m_Norm.X - p2.m_Norm.X) < EPS &&
|
||||
std::fabs(p1.m_Norm.Y - p2.m_Norm.Y) < EPS &&
|
||||
std::fabs(p1.m_Norm.Z - p2.m_Norm.Z) < EPS;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user