[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src math.hxx,NONE,1.1
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src math.hxx,NONE,1.1 |
Date: |
20 Jun 2002 15:20:27 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv20231
Added Files:
math.hxx
Log Message:
min/max implementation
--- NEW FILE: math.hxx ---
// $Id: math.hxx,v 1.1 2002/06/20 15:20:25 grumbel Exp $
//
// Pingus - A free Lemmings clone
// Copyright (C) 2000 Ingo Ruhnke <address@hidden>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef MATH_HXX
#define MATH_HXX
namespace Pingus
{
namespace Math
{
template<class C>
T min (const T& a, const T& b)
{
if (a < b)
return a;
else
return b;
}
template<class T>
T max (const T& a, const T& b)
{
if (a > b)
return a;
else
return b;
}
}
}
#endif
/* EOF */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src math.hxx,NONE,1.1,
grumbel <=