17 #include <gtest/gtest.h> 26 using namespace Eigen;
32 types.push_back(
"type");
45 EXPECT_EQ(0, (*iterator)(0));
46 EXPECT_EQ(0, (*iterator)(1));
50 EXPECT_EQ(0, (*iterator)(0));
51 EXPECT_EQ(1, (*iterator)(1));
55 EXPECT_EQ(0, (*iterator)(0));
56 EXPECT_EQ(2, (*iterator)(1));
58 for (
int i = 0; i < 37; ++i) ++iterator;
61 EXPECT_EQ(7, (*iterator)(0));
62 EXPECT_EQ(4, (*iterator)(1));
98 EXPECT_EQ(3, (*iterator)(0));
99 EXPECT_EQ(1, (*iterator)(1));
103 EXPECT_EQ(3, (*iterator)(0));
104 EXPECT_EQ(2, (*iterator)(1));
108 EXPECT_EQ(3, (*iterator)(0));
109 EXPECT_EQ(3, (*iterator)(1));
113 EXPECT_EQ(4, (*iterator)(0));
114 EXPECT_EQ(1, (*iterator)(1));
118 EXPECT_EQ(4, (*iterator)(0));
119 EXPECT_EQ(2, (*iterator)(1));
123 EXPECT_EQ(4, (*iterator)(0));
124 EXPECT_EQ(3, (*iterator)(1));
143 EXPECT_EQ(0, (*iterator)(0));
144 EXPECT_EQ(0, (*iterator)(1));
148 EXPECT_EQ(1, (*iterator)(0));
149 EXPECT_EQ(0, (*iterator)(1));
168 EXPECT_EQ(6, (*iterator)(0));
169 EXPECT_EQ(1, (*iterator)(1));
173 EXPECT_EQ(6, (*iterator)(0));
174 EXPECT_EQ(2, (*iterator)(1));
176 for (
int i = 0; i < 4; ++i) ++iterator;
179 EXPECT_EQ(7, (*iterator)(0));
180 EXPECT_EQ(3, (*iterator)(1));
184 EXPECT_EQ(0, (*iterator)(0));
185 EXPECT_EQ(1, (*iterator)(1));
187 for (
int i = 0; i < 8; ++i) ++iterator;
190 EXPECT_EQ(2, (*iterator)(0));
191 EXPECT_EQ(3, (*iterator)(1));
void setGeometry(const Length &length, const double resolution, const Position &position=Position::Zero())
TEST(PolygonIterator, FullCover)
void addVertex(const Position &vertex)