Line rasterization algorithm for drawing lines to the display. More...
#include <Bresenham.hpp>
Classes | |
| struct | Pixel |
Public Types | |
| using | pint = int16_t |
Public Member Functions | |
| BresenhamLine (Pixel start, int cos, int sin) | |
| BresenhamLine (Pixel start, float angle) | |
| pint | getCurrentLength () const |
| Pixel | next () |
Static Public Member Functions | |
| static int | cos (double angle) |
| static int | sin (double angle) |
Private Attributes | |
| Pixel | px |
| int | dx |
| int | dy |
| int | adx |
| int | ady |
| int | xinc |
| int | yinc |
| bool | steep |
| int | error |
| pint | length = 0 |
Static Private Attributes | |
| const static int | errorScalingFactor = INT_MAX / 2 |
Line rasterization algorithm for drawing lines to the display.
Definition at line 16 of file Bresenham.hpp.
| using BresenhamLine::pint = int16_t |
Definition at line 18 of file Bresenham.hpp.
|
inline |
Definition at line 34 of file Bresenham.hpp.
|
inline |
Definition at line 47 of file Bresenham.hpp.
|
inline |
Definition at line 54 of file Bresenham.hpp.
|
inline |
Definition at line 56 of file Bresenham.hpp.
|
inlinestatic |
Definition at line 77 of file Bresenham.hpp.
|
inlinestatic |
Definition at line 81 of file Bresenham.hpp.
|
staticprivate |
Definition at line 86 of file Bresenham.hpp.
|
private |
Definition at line 87 of file Bresenham.hpp.
|
private |
Definition at line 88 of file Bresenham.hpp.
|
private |
Definition at line 88 of file Bresenham.hpp.
|
private |
Definition at line 89 of file Bresenham.hpp.
|
private |
Definition at line 89 of file Bresenham.hpp.
|
private |
Definition at line 90 of file Bresenham.hpp.
|
private |
Definition at line 90 of file Bresenham.hpp.
|
private |
Definition at line 91 of file Bresenham.hpp.
|
private |
Definition at line 92 of file Bresenham.hpp.
|
private |
Definition at line 93 of file Bresenham.hpp.
1.8.16