** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ctsupport.h,v 1.10 2000/12/06 16:41:17 kevin Exp $
+** $Id: ctsupport.h,v 1.11 2000/12/16 02:44:26 kevin Exp $
**
**
** This program is free software; you can redistribute it and/or modify
inline int imax (int a, int b)\r
{ return (a >= b ? a : b); }\r
\r
+inline double dmax (double a, double b)\r
+{ return (a >= b ? a : b); }\r
+\r
template<class T>
inline T clamp (T value, T lowerBounds, T upperBounds)
{ return (value >= upperBounds ? upperBounds : (value <= lowerBounds ? lowerBounds : value )); }