diff options
Diffstat (limited to 'src/mbgl/geometry')
-rw-r--r-- | src/mbgl/geometry/anchor.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mbgl/geometry/anchor.hpp b/src/mbgl/geometry/anchor.hpp index 49979cc15a..0dd252216a 100644 --- a/src/mbgl/geometry/anchor.hpp +++ b/src/mbgl/geometry/anchor.hpp @@ -1,21 +1,22 @@ #ifndef MBGL_GEOMETRY_ANCHOR #define MBGL_GEOMETRY_ANCHOR +#include <mbgl/util/geometry.hpp> + #include <vector> namespace mbgl { struct Anchor { - float x = 0.0f; - float y = 0.0f; + Point<float> point; float angle = 0.0f; float scale = 0.0f; int segment = -1; explicit Anchor(float x_, float y_, float angle_, float scale_) - : x(x_), y(y_), angle(angle_), scale(scale_) {} + : point(x_, y_), angle(angle_), scale(scale_) {} explicit Anchor(float x_, float y_, float angle_, float scale_, int segment_) - : x(x_), y(y_), angle(angle_), scale(scale_), segment(segment_) {} + : point(x_, y_), angle(angle_), scale(scale_), segment(segment_) {} }; |