diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-07-16 18:53:56 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-07-16 18:53:56 -0700 |
commit | 4ea281c750c5afcc68f2832bb42d98a1cbce6735 (patch) | |
tree | 60bc7d3ccba2c54859e2e023997cc027cc67aea7 /include/mbgl/geometry/anchor.hpp | |
parent | c1a64dc5fa73b54cc5de77629781dfc74302a1e7 (diff) | |
download | qtlocation-mapboxgl-4ea281c750c5afcc68f2832bb42d98a1cbce6735.tar.gz |
rename llmr => mbgl
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 |