author | francesco-ST <francesco.abbate@st.com> | 2010年07月30日 14:04:37 +0200 |
---|---|---|
committer | francesco-ST <francesco.abbate@st.com> | 2010年07月30日 14:04:37 +0200 |
commit | 975bbb0229edfb8ca2be826994f5422a0c8d6c38 (patch) | |
tree | e9e9c6403e321597a276d7288d4c449d12d5d2c9 /agg-plot/plot.h | |
parent | d28a8f579f2e902f5bced91cbb726f7eca32b3a1 (diff) | |
download | gsl-shell-975bbb0229edfb8ca2be826994f5422a0c8d6c38.tar.gz |
-rw-r--r-- | agg-plot/plot.h | 10 |
diff --git a/agg-plot/plot.h b/agg-plot/plot.h index caa9ec7c..8754360c 100644 --- a/agg-plot/plot.h +++ b/agg-plot/plot.h @@ -23,6 +23,16 @@ #include "agg_gsv_text.h" +static 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; +} + template<class VertexSource, class resource_manager = no_management> class plot { |