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年11月18日 19:31:25 +0000
committerFrancesco Abbate <francesco.bbt@gmail.com>2009年11月18日 19:31:25 +0000
commitb2d5b7d64100164e40e3141094736f2ac010a69f (patch)
tree41ac9a78eea0c8c677b7dff6e6a46f5f901fae19 /agg-plot/utils.cpp
parente8a10279d92ab7a66402bae02a8fc423a6162fd5 (diff)
downloadgsl-shell-b2d5b7d64100164e40e3141094736f2ac010a69f.tar.gz
First draft of AGG plot modules. The old one based on GNU libplot is removed.
Diffstat (limited to 'agg-plot/utils.cpp')
-rw-r--r--agg-plot/utils.cpp 16
1 files changed, 16 insertions, 0 deletions
diff --git a/agg-plot/utils.cpp b/agg-plot/utils.cpp
new file mode 100644
index 00000000..6b834ee7
--- /dev/null
+++ b/agg-plot/utils.cpp
@@ -0,0 +1,16 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <limits.h>
+
+#include "utils.h"
+
+void
+trans_affine_compose (agg::trans_affine& a, const agg::trans_affine& b)
+{
+ a.premultiply(b);
+
+ double a_tx = b.sx * a.tx + b.shx * a.ty + b.tx;
+ double a_ty = b.shy * a.tx + b.sy * a.ty + b.ty;
+ a.tx = a_tx;
+ a.ty = a_ty;
+}
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月16日 23:10:30 +0000

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