mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
+ expose set_minx/miny/maxx/maxy - makes it easier
to adapt for boost::geometry
This commit is contained in:
parent
c68ac84a3b
commit
6ffe78c300
@ -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);
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user