summaryrefslogtreecommitdiff
path: root/include/mbgl/geometry/anchor.hpp
blob: d30394f0b99bc50bc8953d959f1aaa218bd4ffa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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