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) {
static constexpr int sgn(T val)
const static int errorScalingFactor
static int cos(double angle)
size_t printTo(Print &p) const override
BresenhamLine(Pixel start, int cos, int sin)
#define BEGIN_CS_NAMESPACE
static int sin(double angle)
Line rasterization algorithm for drawing lines to the display.
unsigned int distanceSquared(Pixel other) const
pint getCurrentLength() const
BresenhamLine(Pixel start, float angle)