diff --git a/include/mapnik/box2d.hpp b/include/mapnik/box2d.hpp index 6688fa94f..41909e677 100644 --- a/include/mapnik/box2d.hpp +++ b/include/mapnik/box2d.hpp @@ -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); diff --git a/src/box2d.cpp b/src/box2d.cpp index de767ac35..b7fbdb3b2 100644 --- a/src/box2d.cpp +++ b/src/box2d.cpp @@ -128,6 +128,30 @@ T box2d::maxy() const return maxy_; } +template +void box2d::set_minx(T v) +{ + minx_ = v; +} + +template +void box2d::set_miny(T v) +{ + miny_ = v; +} + +template +void box2d::set_maxx(T v) +{ + maxx_ = v; +} + +template +void box2d::set_maxy(T v) +{ + maxy_ = v; +} + template #if !defined(__SUNPRO_CC) inline