blob: f250063f03f81e4e390a8dae2a0947d9d34673bc [file] [log] [blame]
//#####################################################################
// Copyright 2005, Eftychios Sifakis.
// This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt.
//#####################################################################
// Function abs
//#####################################################################
#ifndef __abs__
#define __abs__
namespace PhysBAM
{
template<class T>
inline T abs (const T a)
{
return a > 0 ? a : -a;
}
}
#endif