| 
   
    MIDI Control Surface library for Arduino 
   | 
 
 
 
 
Go to the documentation of this file.
    6 #include <Settings/SettingsWrapper.hpp> 
   13 static constexpr 
inline int sgn(T val) {
 
   14     return (T(0) < val) - (val < T(0));
 
   21     struct Pixel : 
public Printable {
 
   25         size_t printTo(Print &p) 
const override;
 
   27             int dx = this->x - other.
x;
 
   28             int dy = this->
y - other.
y;
 
   76     static int cos(
double angle) {
 
   80     static int sin(
double angle) {
 
  
size_t printTo(Print &p) const override
 
static constexpr int sgn(T val)
 
static int cos(double angle)
 
static int sin(double angle)
 
#define BEGIN_CS_NAMESPACE
 
BresenhamLine(Pixel start, float angle)
 
pint getCurrentLength() const
 
Line rasterization algorithm for drawing lines to the display.
 
BresenhamLine(Pixel start, int cos, int sin)
 
unsigned int distanceSquared(Pixel other) const
 
static const int errorScalingFactor