Control Surface  1.1.1
MIDI Control Surface library for Arduino
Public Member Functions | Public Attributes | List of all members
BresenhamLine::Pixel Struct Reference

#include <Display/Helpers/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
 

Detailed Description

Definition at line 19 of file Bresenham.hpp.

Constructor & Destructor Documentation

◆ Pixel() [1/2]

Pixel ( pint  x,
pint  y 
)
inline

Definition at line 21 of file Bresenham.hpp.

◆ Pixel() [2/2]

Pixel ( )
default

Member Function Documentation

◆ printTo()

size_t printTo ( Print &  p) const
inlineoverride

Definition at line 23 of file Bresenham.hpp.

◆ distanceSquared()

unsigned int distanceSquared ( Pixel  other) const
inline

Definition at line 27 of file Bresenham.hpp.

Member Data Documentation

◆ x

pint x = 0

Definition at line 20 of file Bresenham.hpp.

◆ y

pint y = 0

Definition at line 20 of file Bresenham.hpp.


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