author | Francesco Abbate <francesco.bbt@gmail.com> | 2009年11月18日 19:31:25 +0000 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2009年11月18日 19:31:25 +0000 |
commit | b2d5b7d64100164e40e3141094736f2ac010a69f (patch) | |
tree | 41ac9a78eea0c8c677b7dff6e6a46f5f901fae19 /agg-plot/utils.cpp | |
parent | e8a10279d92ab7a66402bae02a8fc423a6162fd5 (diff) | |
download | gsl-shell-b2d5b7d64100164e40e3141094736f2ac010a69f.tar.gz |
-rw-r--r-- | agg-plot/utils.cpp | 16 |
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; +} |