pixel_position - derive from geometry::point<double>
This commit is contained in:
parent
10d9496d55
commit
ac8c5e3669
1 changed files with 7 additions and 8 deletions
|
@ -24,21 +24,20 @@
|
||||||
|
|
||||||
// stl
|
// stl
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
#include <mapnik/geometry.hpp>
|
||||||
|
|
||||||
namespace mapnik
|
namespace mapnik
|
||||||
{
|
{
|
||||||
|
|
||||||
struct rotation;
|
struct rotation;
|
||||||
struct pixel_position
|
struct pixel_position : geometry::point<double>
|
||||||
{
|
{
|
||||||
double x;
|
pixel_position(double x, double y)
|
||||||
double y;
|
: geometry::point<double>(x, y) {}
|
||||||
pixel_position(double x_, double y_)
|
|
||||||
: x(x_),
|
|
||||||
y(y_) {}
|
|
||||||
pixel_position()
|
pixel_position()
|
||||||
: x(0),
|
: geometry::point<double>(0,0) {}
|
||||||
y(0) {}
|
|
||||||
pixel_position operator+ (pixel_position const& other) const
|
pixel_position operator+ (pixel_position const& other) const
|
||||||
{
|
{
|
||||||
return pixel_position(x + other.x, y + other.y);
|
return pixel_position(x + other.x, y + other.y);
|
||||||
|
|
Loading…
Reference in a new issue