35 #ifndef NAV_GRID_ITERATORS_CIRCLE_FILL_H 36 #define NAV_GRID_ITERATORS_CIRCLE_FILL_H 95 double radius_sq,
unsigned int min_x,
unsigned int min_y,
unsigned int width,
unsigned int height,
103 bool isInside(
unsigned int x,
unsigned int y)
const;
113 #endif // NAV_GRID_ITERATORS_CIRCLE_FILL_H
CircleFill & operator=(const CircleFill &other)
Assignment Operator Required to ensure unique_ptr is set properly.
CircleFill(const nav_grid::NavGridInfo *info, double center_x, double center_y, double radius)
Public Constructor.
nav_grid::Index start_index_
TFSIMD_FORCE_INLINE const tfScalar & y() const
Iterates over all of the valid indexes that lie within a circle in row major order.
std::unique_ptr< SubGrid > internal_iterator_
TFSIMD_FORCE_INLINE const tfScalar & x() const
bool isInside(unsigned int x, unsigned int y) const
Check if coordinates are inside the circle.
void increment() override
Increase the iterator to the next element.
bool fieldsEqual(const CircleFill &other) override
Additional check for whether fields of derived iterators are equal.
CircleFill begin() const override
Helper function for range-style iteration Equivalent to the above constructor.
CircleFill end() const override
Helper function for range-style iteration.