+ expose set_minx/miny/maxx/maxy - makes it easier

to adapt for boost::geometry
This commit is contained in:
artemp 2013-03-06 21:09:15 +00:00
parent c68ac84a3b
commit 6ffe78c300
2 changed files with 28 additions and 0 deletions

View File

@ -67,6 +67,10 @@ public:
T miny() const;
T maxx() const;
T maxy() const;
void set_minx(T v);
void set_miny(T v);
void set_maxx(T v);
void set_maxy(T v);
T width() const;
T height() const;
void width(T w);

View File

@ -128,6 +128,30 @@ T box2d<T>::maxy() const
return maxy_;
}
template<typename T>
void box2d<T>::set_minx(T v)
{
minx_ = v;
}
template<typename T>
void box2d<T>::set_miny(T v)
{
miny_ = v;
}
template<typename T>
void box2d<T>::set_maxx(T v)
{
maxx_ = v;
}
template<typename T>
void box2d<T>::set_maxy(T v)
{
maxy_ = v;
}
template <typename T>
#if !defined(__SUNPRO_CC)
inline