Files
MapLibreParticleLab/include/llmr/geometry/anchor.hpp
Konstantin Käfer 98bb797a4a explicit names
2014-03-18 17:57:51 +01:00

25 lines
537 B
C++

#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