MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
5 #include <Settings/SettingsWrapper.hpp>
11 static constexpr
inline int sgn(T val) {
12 return (T(0) < val) - (val < T(0));
19 struct Pixel :
public Printable {
24 return p.print(
'(') + p.print(
x) + p.print(
", ") + p.print(
y) +
28 int dx = this->x - other.
x;
29 int dy = this->
y - other.
y;
77 static int cos(
double angle) {
81 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
const static int errorScalingFactor