Basic skeleton of the C++ class model done with a functional test. GSL shell build currently broken. - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/utils.cpp
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2009年12月13日 17:41:07 +0000
committerFrancesco Abbate <francesco.bbt@gmail.com>2009年12月13日 17:41:07 +0000
commitd00328bd46965223c83f3880204943d8e5844034 (patch)
tree86436dedafa24ce7e628df7467ca063237fd7cc5 /agg-plot/utils.cpp
parent220963841157dd309b3e26c879ad3bb9ba626580 (diff)
downloadgsl-shell-d00328bd46965223c83f3880204943d8e5844034.tar.gz
Basic skeleton of the C++ class model done with a functional test. GSL shell build currently broken.
Diffstat (limited to 'agg-plot/utils.cpp')
-rw-r--r--agg-plot/utils.cpp 6
1 files changed, 6 insertions, 0 deletions
diff --git a/agg-plot/utils.cpp b/agg-plot/utils.cpp
index 60f9c2f6..4b51c252 100644
--- a/agg-plot/utils.cpp
+++ b/agg-plot/utils.cpp
@@ -17,3 +17,9 @@ trans_affine_compose (agg::trans_affine& a, const agg::trans_affine& b)
a.tx = b.sx * a_tx + b.shx * a_ty + b.tx;
a.ty = b.shy * a_tx + b.sy * a_ty + b.ty;
}
+
+double
+trans_affine_max_norm (agg::trans_affine& m)
+{
+ return max(m.sx, m.sy);
+}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月16日 14:02:38 +0000

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