X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Fctsupport.h;fp=include%2Fctsupport.h;h=6263b69bd88228019a0e5f930d3ec66dc930aa46;hp=ce05b3bb59e9cc3b737f0f07eb9ec61984653305;hb=6afa21de8aa00b405de47584efe108c71df33e1b;hpb=7a50ad8860d015c3e06038475929bc62011b561c diff --git a/include/ctsupport.h b/include/ctsupport.h index ce05b3b..6263b69 100644 --- a/include/ctsupport.h +++ b/include/ctsupport.h @@ -9,7 +9,7 @@ ** 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 @@ -225,6 +225,9 @@ inline T nearest (double x) inline int imax (int a, int b) { return (a >= b ? a : b); } +inline double dmax (double a, double b) +{ return (a >= b ? a : b); } + template inline T clamp (T value, T lowerBounds, T upperBounds) { return (value >= upperBounds ? upperBounds : (value <= lowerBounds ? lowerBounds : value )); }