mirror of
https://github.com/tribes2/engine.git
synced 2026-03-24 22:59:13 +00:00
t2 engine svn checkout
This commit is contained in:
commit
ff569bd2ae
988 changed files with 394180 additions and 0 deletions
29
core/realComp.h
Normal file
29
core/realComp.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// V12 Engine
|
||||
//
|
||||
// Copyright (c) 2001 GarageGames.Com
|
||||
// Portions Copyright (c) 2001 by Sierra Online, Inc.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef _REALCOMP_H_
|
||||
#define _REALCOMP_H_
|
||||
|
||||
//Includes
|
||||
#ifndef _MMATHFN_H_
|
||||
#include "Math/mMathFn.h"
|
||||
#endif
|
||||
#ifndef _PLATFORM_H_
|
||||
#include "Platform/platform.h"
|
||||
#endif
|
||||
|
||||
inline bool isEqual(F32 a, F32 b)
|
||||
{
|
||||
return mFabs(a - b) < __EQUAL_CONST_F;
|
||||
}
|
||||
|
||||
inline bool isZero(F32 a)
|
||||
{
|
||||
return mFabs(a) < __EQUAL_CONST_F;
|
||||
}
|
||||
|
||||
#endif //_REALCOMP_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue