Line rasterization algorithm for drawing lines to the display. More...
#include <Display/Helpers/Bresenham.hpp>
 Collaboration diagram for BresenhamLine: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 | |
| static const int | errorScalingFactor = INT_MAX / 2 | 
Line rasterization algorithm for drawing lines to the display.
Definition at line 18 of file Bresenham.hpp.
| 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 46 of file Bresenham.hpp.
      
  | 
  inline | 
Definition at line 53 of file Bresenham.hpp.
      
  | 
  inline | 
Definition at line 55 of file Bresenham.hpp.
      
  | 
  inlinestatic | 
Definition at line 76 of file Bresenham.hpp.
      
  | 
  inlinestatic | 
Definition at line 80 of file Bresenham.hpp.
      
  | 
  staticprivate | 
Definition at line 85 of file Bresenham.hpp.
      
  | 
  private | 
Definition at line 86 of file Bresenham.hpp.
      
  | 
  private | 
Definition at line 87 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 91 of file Bresenham.hpp.
      
  | 
  private | 
Definition at line 92 of file Bresenham.hpp.