gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/utils.h
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2009年11月21日 17:44:08 +0000
committerFrancesco Abbate <francesco.bbt@gmail.com>2009年11月21日 17:44:08 +0000
commit67e863fa3eef8e476507d58b7a21e7018ed56a28 (patch)
tree56d3db3de177f1472c0a6c3586d1ddacb532c643 /agg-plot/utils.h
parentb2d5b7d64100164e40e3141094736f2ac010a69f (diff)
downloadgsl-shell-67e863fa3eef8e476507d58b7a21e7018ed56a28.tar.gz
Progess in AGG plot implementation. Still work in progress.
Diffstat (limited to 'agg-plot/utils.h')
-rw-r--r--agg-plot/utils.h 13
1 files changed, 13 insertions, 0 deletions
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
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月15日 05:11:29 +0000

AltStyle によって変換されたページ (->オリジナル) /