00001 /***************************************************************************** 00002 ** $Id: qts_math.h,v 1.1 2002/06/14 08:19:17 andrew23 Exp $ 00003 ** 00004 ** This is part of the QCad GUI 00005 ** Copyright (C) 2001 Andrew Mustun 00006 ** 00007 ** This program is free software; you can redistribute it and/or modify 00008 ** it under the terms of the GNU General Public License (version 2) as 00009 ** published by the Free Software Foundation. 00010 ** 00011 ** This program is distributed in the hope that it will be useful, 00012 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 ** GNU General Public License for more details. 00015 ** 00016 ** You should have received a copy of the GNU General Public License 00017 ** along with this program; if not, write to the Free Software 00018 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 ******************************************************************************/ 00020 00021 #ifndef QTS_MATH_H 00022 #define QTS_MATH_H 00023 00027 class QTS_Math { 00028 public: 00029 QTS_Math(); 00030 virtual ~QTS_Math(); 00031 00032 static double mini(double a, double b) { 00033 return ((a<b) ? a : b); 00034 } 00035 static double maxi(double a, double b) { 00036 return ((a>b) ? a : b); 00037 } 00038 00039 }; 00040 00041 #endif 00042