diff options
Diffstat (limited to 'include/mbgl/geometry/anchor.hpp')
-rw-r--r-- | include/mbgl/geometry/anchor.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/mbgl/geometry/anchor.hpp b/include/mbgl/geometry/anchor.hpp new file mode 100644 index 0000000000..ab006530ff --- /dev/null +++ b/include/mbgl/geometry/anchor.hpp @@ -0,0 +1,25 @@ +#ifndef MBGL_GEOMETRY_ANCHOR +#define MBGL_GEOMETRY_ANCHOR + +#include <vector> + +namespace mbgl { + +struct Anchor { + float x = 0.0f; + float y = 0.0f; + 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) {} + explicit Anchor(float x, float y, float angle, float scale, int segment) + : x(x), y(y), angle(angle), scale(scale), segment(segment) {} +}; + +typedef std::vector<Anchor> Anchors; + +} + +#endif
\ No newline at end of file |