FastLED 3.9.15
|
|
inline |
Traverse a grid segment by selecting the cells that are crossed.
This version will select the fastest integer implementation based on the length of the segment. Most of the time it will call traverseGridSegment16() since segment spans are typically < 256 pixels.
GridVisitor |
start | start point |
end | end point |
visitor | called for each cell visited. |
Fully tested.
Definition at line 275 of file traverse_grid.h.
References ABS, MAX, traverseGridSegment16(), traverseGridSegment32(), fl::vec2< T >::x, and fl::vec2< T >::y.