added text graphical object. - 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-ST <francesco.abbate@st.com>2010年07月27日 16:54:48 +0200
committerfrancesco-ST <francesco.abbate@st.com>2010年07月27日 16:54:48 +0200
commitd28a8f579f2e902f5bced91cbb726f7eca32b3a1 (patch)
tree7d77805417cbb0ae41bdbd2b57a0933617e3a244 /agg-plot/utils.cpp
parent5b7cd1356fb503390febbc21b2d535e98de7f776 (diff)
downloadgsl-shell-d28a8f579f2e902f5bced91cbb726f7eca32b3a1.tar.gz
added text graphical object.
Diffstat (limited to 'agg-plot/utils.cpp')
-rw-r--r--agg-plot/utils.cpp 4
1 files changed, 3 insertions, 1 deletions
diff --git a/agg-plot/utils.cpp b/agg-plot/utils.cpp
index 139772e6..145c27e1 100644
--- a/agg-plot/utils.cpp
+++ b/agg-plot/utils.cpp
@@ -21,7 +21,9 @@ trans_affine_compose (agg::trans_affine& a, const agg::trans_affine& b)
double
trans_affine_max_norm (const agg::trans_affine& m)
{
- return max(m.sx, m.sy);
+ double c1 = sqrt(m.sx*m.sx + m.shx*m.shx);
+ double c2 = sqrt(m.shy*m.shy + m.sy*m.sy);
+ return max(c1, c2);
}
void bbox_enlarge(double *x1, double* y1, double* x2, double* y2,
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月19日 18:43:56 +0000

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