Go to the documentation of this file.
35 #ifndef NAV_GRID_ITERATORS_LINE_H
36 #define NAV_GRID_ITERATORS_LINE_H
61 bool include_last_index =
true,
bool bresenham =
true);
115 #endif // NAV_GRID_ITERATORS_LINE_H
bool fieldsEqual(const Line &other) override
Additional check for whether fields of derived iterators are equal.
std::unique_ptr< AbstractLineIterator > internal_iterator_
Line & operator=(const Line &other)
Assignment Operator Required to ensure unique_ptr is set properly.
Iterates over all of the valid indexes of a line.
Line(const nav_grid::NavGridInfo *info, double x0, double y0, double x1, double y1, bool include_last_index=true, bool bresenham=true)
Public Constructor.
Line begin() const override
void increment() override
Increase the iterator to the next element.
bool inBounds(const nav_grid::SignedIndex &sindex)
Check if a SignedIndex is within the bounds of the NavGrid.
nav_grid::Index end_index_
nav_grid::Index start_index_
Line end() const override