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>2012年10月15日 13:11:54 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年10月15日 13:11:54 +0200
commit137e4d264c73b3087a5d0968362c5b9ca3108f2d (patch)
treea80691d187615ec2e63f25182be7895b9a8a313f /agg-plot/utils.cpp
parent7d157c5bd8ddf920094907a35c9329ce0688e3d4 (diff)
downloadgsl-shell-137e4d264c73b3087a5d0968362c5b9ca3108f2d.tar.gz
Using AStyle of all the C and C++ source and header files
Using default AStyle formatting, "allman" style.
Diffstat (limited to 'agg-plot/utils.cpp')
-rw-r--r--agg-plot/utils.cpp 14
1 files changed, 7 insertions, 7 deletions
diff --git a/agg-plot/utils.cpp b/agg-plot/utils.cpp
index eb0e908a..c1554d46 100644
--- a/agg-plot/utils.cpp
+++ b/agg-plot/utils.cpp
@@ -7,17 +7,17 @@ agg::trans_affine identity_matrix;
void
trans_affine_compose (agg::trans_affine& a, const agg::trans_affine& b)
{
- double a_tx = a.tx, a_ty = a.ty;
+ double a_tx = a.tx, a_ty = a.ty;
- a.premultiply(b);
+ a.premultiply(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;
+ a.tx = b.sx * a_tx + b.shx * a_ty + b.tx;
+ a.ty = b.shy * a_tx + b.sy * a_ty + b.ty;
}
agg::trans_affine affine_matrix(const agg::rect_i& r)
{
- double w = r.x2 - r.x1, h = r.y2 - r.y1;
- double tx = r.x1, ty = r.y1;
- return agg::trans_affine(w, 0.0, 0.0, h, tx, ty);
+ double w = r.x2 - r.x1, h = r.y2 - r.y1;
+ double tx = r.x1, ty = r.y1;
+ return agg::trans_affine(w, 0.0, 0.0, h, tx, ty);
}
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月16日 21:33:01 +0000

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