summaryrefslogtreecommitdiff
path: root/include/llmr/geometry/anchor.hpp
blob: dd97c507f27f3d964b77eb7bff3f672002f25068 (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 LLMR_GEOMETRY_ANCHOR
#define LLMR_GEOMETRY_ANCHOR

#include <vector>

namespace llmr {

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