Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
BresenhamLine::Pixel Struct Reference

#include <Display/Helpers/Bresenham.hpp>

Detailed Description

Definition at line 21 of file Bresenham.hpp.

+ Inheritance diagram for BresenhamLine::Pixel:
+ Collaboration diagram for BresenhamLine::Pixel:

Public Member Functions

 Pixel (pint x, pint y)
 
 Pixel ()=default
 
size_t printTo (Print &p) const override
 
unsigned int distanceSquared (Pixel other) const
 

Public Attributes

pint x = 0
 
pint y = 0
 

Constructor & Destructor Documentation

◆ Pixel() [1/2]

Pixel ( pint x,
pint y )
inline

Definition at line 23 of file Bresenham.hpp.

◆ Pixel() [2/2]

Pixel ( )
default

Member Function Documentation

◆ printTo()

size_t printTo ( Print & p) const
override

Definition at line 5 of file Bresenham.cpp.

◆ distanceSquared()

unsigned int distanceSquared ( Pixel other) const
inline

Definition at line 26 of file Bresenham.hpp.

Member Data Documentation

◆ x

pint x = 0

Definition at line 22 of file Bresenham.hpp.

◆ y

pint y = 0

Definition at line 22 of file Bresenham.hpp.


The documentation for this struct was generated from the following files: