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;
Anchor(float x, float y, float angle, float scale)
: x(x), y(y), angle(angle), scale(scale) {}
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
|