From 3835be08da347dcaf854d61dc21f0cb52164ef8a Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: 2012年1月11日 16:41:22 +0100 Subject: Add support for plot legends Introduce also the textshape graphical object required to create legends effectively. --- agg-plot/utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'agg-plot/utils.h') diff --git a/agg-plot/utils.h b/agg-plot/utils.h index d90febf6..a6a0a5df 100644 --- a/agg-plot/utils.h +++ b/agg-plot/utils.h @@ -48,6 +48,12 @@ private: agg::pod_bvector m_list; }; +inline bool is_unit_matrix(const agg::trans_affine& m, double eps = 1.0e-5) +{ + return (fabs(m.sx - 1.0) < eps && fabs(m.shx) < eps && \ + fabs(m.shy) < eps && fabs(m.sy - 1.0) < eps); +} + extern void trans_affine_compose (agg::trans_affine& a, const agg::trans_affine& b); -- cgit v1.2.3

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