34 #include <gtest/gtest.h> 38 template<
class iterator_type>
42 iterator_type end = it.end();
43 for ( ; it != end; ++it)
46 if (count >= max_iterations)
break;
53 for (
int i = 0; i <= 1; i++)
55 bool include_last_point = i == 0;
98 TEST(Lines, border_conditions)
102 for (
int include_last_point = 0; include_last_point <= 1; ++include_last_point)
104 for (
int i=0; i < N; ++i)
122 ASSERT_FALSE(it1 == it2);
134 int main(
int argc,
char **argv)
136 testing::InitGoogleTest(&argc, argv);
137 return RUN_ALL_TESTS();
int main(int argc, char **argv)
Line Iterator using Bresenham's algorithm (no subpixel precision)
int countIterations(iterator_type it, int max_iterations=1000)
Line Iterator with Ray Tracing (subpixel accuracy)
RayTrace begin() const
Helper function for range-style iteration.
Bresenham begin() const
Helper function for range-style iteration.