author | Francesco Abbate <francesco.bbt@gmail.com> | 2009年11月21日 17:44:08 +0000 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2009年11月21日 17:44:08 +0000 |
commit | 67e863fa3eef8e476507d58b7a21e7018ed56a28 (patch) | |
tree | 56d3db3de177f1472c0a6c3586d1ddacb532c643 /agg-plot/utils.h | |
parent | b2d5b7d64100164e40e3141094736f2ac010a69f (diff) | |
download | gsl-shell-67e863fa3eef8e476507d58b7a21e7018ed56a28.tar.gz |
-rw-r--r-- | agg-plot/utils.h | 13 |
diff --git a/agg-plot/utils.h b/agg-plot/utils.h index f760da08..c7245d77 100644 --- a/agg-plot/utils.h +++ b/agg-plot/utils.h @@ -1,8 +1,21 @@ #ifndef AGGPLOT_UTILS_H #define AGGPLOT_UTILS_H +#include <string> #include "agg_trans_affine.h" +template <class T> +T max (T a, T b) { + return (b < a) ? a : b; +} + +template <class T> +T min (T a, T b) { + return (b > a) ? a : b; +} + extern void trans_affine_compose (agg::trans_affine& a, const agg::trans_affine& b); +extern void string_printf (std::string &s, const char *fmt, ...); + #endif |