modified transformation hierarchy to use templates - 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月30日 14:04:37 +0200
committerfrancesco-ST <francesco.abbate@st.com>2010年07月30日 14:04:37 +0200
commit975bbb0229edfb8ca2be826994f5422a0c8d6c38 (patch)
treee9e9c6403e321597a276d7288d4c449d12d5d2c9 /agg-plot/utils.cpp
parentd28a8f579f2e902f5bced91cbb726f7eca32b3a1 (diff)
downloadgsl-shell-975bbb0229edfb8ca2be826994f5422a0c8d6c38.tar.gz
modified transformation hierarchy to use templates
Now trans is a parametrised class that gives uniform acess to drawable and scalable objects.
Diffstat (limited to 'agg-plot/utils.cpp')
-rw-r--r--agg-plot/utils.cpp 11
1 files changed, 2 insertions, 9 deletions
diff --git a/agg-plot/utils.cpp b/agg-plot/utils.cpp
index 145c27e1..bd4784d3 100644
--- a/agg-plot/utils.cpp
+++ b/agg-plot/utils.cpp
@@ -18,6 +18,7 @@ trans_affine_compose (agg::trans_affine& a, const agg::trans_affine& b)
a.ty = b.shy * a_tx + b.sy * a_ty + b.ty;
}
+/*
double
trans_affine_max_norm (const agg::trans_affine& m)
{
@@ -25,12 +26,4 @@ trans_affine_max_norm (const agg::trans_affine& m)
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,
- double x, double y)
-{
- if (x < *x1) *x1 = x;
- if (y < *y1) *y1 = y;
- if (x > *x2) *x2 = x;
- if (y > *y2) *y2 = y;
-}
+*/
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月16日 07:08:39 +0000

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