diff --git a/include/mapnik/ctrans.hpp b/include/mapnik/ctrans.hpp index 909140877..dfe1fcd5b 100644 --- a/include/mapnik/ctrans.hpp +++ b/include/mapnik/ctrans.hpp @@ -128,7 +128,7 @@ private: public: CoordTransform(int width, int height, const box2d& extent, - double offset_x = 0, double offset_y = 0) + double offset_x = 0.0, double offset_y = 0.0) : width_(width), height_(height), extent_(extent), @@ -143,6 +143,16 @@ public: sy_ = static_cast(height_) / extent_.height(); } + inline double offset_x() const + { + return offset_x_; + } + + inline double offset_y() const + { + return offset_y_; + } + inline int width() const { return width_;