6#include <AH/STL/limits>
8#include <Settings/SettingsWrapper.hpp>
21 struct Pixel :
public Printable {
25 size_t printTo(Print &
p)
const override;
28 int dy = this->
y - other.
y;
static constexpr int sgn(T val)
#define BEGIN_CS_NAMESPACE
Line rasterization algorithm for drawing lines to the display.
BresenhamLine(Pixel start, float angle)
static const int errorScalingFactor
static int sin(float angle)
static int cos(float angle)
BresenhamLine(Pixel start, int cos, int sin)
pint getCurrentLength() const
Array< T, N > copyAs(const Array< U, N > &src)
Copy an Array to an Array of a different type.
unsigned int distanceSquared(Pixel other) const
size_t printTo(Print &p) const override