1 #ifndef PIXLED_MAPPING_H
2 #define PIXLED_MAPPING_H
4 #include "../mapping.h"
18 std::ostream&
operator<<(std::ostream& o,
const Mapping& m);
28 point turtle_position {0, 0};
100 std::vector<point> coordinates;
129 LEFT_RIGHT_LEFT_RIGHT_FROM_BOTTOM,
130 LEFT_RIGHT_RIGHT_LEFT_FROM_BOTTOM,
131 RIGHT_LEFT_RIGHT_LEFT_FROM_BOTTOM,
132 RIGHT_LEFT_LEFT_RIGHT_FROM_BOTTOM,
133 LEFT_RIGHT_LEFT_RIGHT_FROM_TOP,
134 LEFT_RIGHT_RIGHT_LEFT_FROM_TOP,
135 RIGHT_LEFT_RIGHT_LEFT_FROM_TOP,
136 RIGHT_LEFT_LEFT_RIGHT_FROM_TOP,
137 TOP_DOWN_TOP_DOWN_FROM_LEFT,
138 TOP_DOWN_DOWN_TOP_FROM_LEFT,
139 DOWN_TOP_DOWN_TOP_FROM_LEFT,
140 DOWN_TOP_TOP_DOWN_FROM_LEFT,
141 TOP_DOWN_TOP_DOWN_FROM_RIGHT,
142 TOP_DOWN_DOWN_TOP_FROM_RIGHT,
143 DOWN_TOP_DOWN_TOP_FROM_RIGHT,
144 DOWN_TOP_TOP_DOWN_FROM_RIGHT
Definition: geometry.h:52
static angle fromDeg(float value)
Definition: geometry.cpp:11
Definition: mapping.h:150
index_t height() const
Definition: mapping.h:187
index_t width() const
Definition: mapping.h:183
LedPanel(index_t width, index_t height, PANEL_LINKING linking)
Definition: mapping.cpp:121
LedStrip(index_t length)
Definition: mapping.cpp:117
index_t getLength() const
Definition: mapping.h:115
point position() const
Definition: mapping.cpp:90
void forward(coordinate distance, index_t num_led=0)
Definition: mapping.cpp:102
void turnRight(angle angle)
Definition: mapping.cpp:113
angle orientation() const
Definition: mapping.cpp:94
void jump(point p)
Definition: mapping.cpp:86
void turnLeft(angle angle)
Definition: mapping.cpp:109
index_t ledIndex() const
Definition: mapping.cpp:98
PANEL_LINKING
Definition: mapping.h:128
std::ostream & operator<<(std::ostream &o, const Mapping &m)
Definition: mapping.cpp:7
Definition: animation.cpp:3
float distance(const point &p1, const point &p2)
Definition: geometry.cpp:4
std::size_t index_t
Definition: mapping.h:11
float coordinate
Definition: geometry.h:18
Definition: geometry.h:23