MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / AreSame

Function AreSame

src/fmath.h:26–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25template <class _Tx>
26inline bool AreSame(const _Tx& l, const _Tx& r) {
27 return std::fabs(l-r) <= std::numeric_limits<_Tx>::epsilon();
28}
29
30template <class _Tx>
31inline _Tx Round(const _Tx& x)

Callers 15

SDLWaitFrameFunction · 0.85
reachedDestinationMethod · 0.85
calculateSpeedMethod · 0.85
operator()Method · 0.85
calculateParabolaMethod · 0.85
increaseByValueMethod · 0.85
increaseByValueMethod · 0.85
loadMethod · 0.85
operator==Method · 0.85
operator ==Method · 0.85
hoverRedrawMethod · 0.85
cartToPolarMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected