gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/rect.h
diff options
context:
space:
mode:
Diffstat (limited to 'agg-plot/rect.h')
-rw-r--r--agg-plot/rect.h 12
1 files changed, 9 insertions, 3 deletions
diff --git a/agg-plot/rect.h b/agg-plot/rect.h
index d9e09099..82e761f5 100644
--- a/agg-plot/rect.h
+++ b/agg-plot/rect.h
@@ -25,7 +25,7 @@ public:
{
assert (m_defined);
return m_rect;
- };
+ }
void compose(rect_type& dst, const rect_type& r)
{
@@ -33,13 +33,19 @@ public:
dst = (m_defined ? agg::unite_rectangles(m_rect, r) : r);
else
dst = (m_defined ? agg::intersect_rectangles(m_rect, r) : r);
- };
+ }
void add(const rect_type& r)
{
this->compose(m_rect, r);
m_defined = true;
- };
+ }
+
+ void add(const opt_rect& optr)
+ {
+ if (optr.m_defined)
+ this->add(optr.m_rect);
+ }
};
#endif
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月25日 09:16:00 +0000

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