#include <Display/Helpers/Bresenham.hpp>
Line rasterization algorithm for drawing lines to the display.
Definition at line 18 of file 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 (float angle) |
static int | sin (float 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 | |
static const int | errorScalingFactor = std::numeric_limits<int>::max() / 2 |
using pint = int16_t |
Definition at line 20 of file Bresenham.hpp.
|
inline |
Definition at line 33 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 82 of file Bresenham.hpp.
|
staticprivate |
Definition at line 88 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 91 of file Bresenham.hpp.
|
private |
Definition at line 92 of file Bresenham.hpp.
|
private |
Definition at line 92 of file Bresenham.hpp.
|
private |
Definition at line 93 of file Bresenham.hpp.
|
private |
Definition at line 94 of file Bresenham.hpp.
|
private |
Definition at line 95 of file Bresenham.hpp.