29 #ifndef _NANO_POINT_H_
30 #define _NANO_POINT_H_
47 void setPoint(lcdint_t px, lcdint_t py) { x=px; y=py; };
99 return {
static_cast<lcdint_t
>(x - p.
x),
100 static_cast<lcdint_t>(y - p.
y) };
109 return {
static_cast<lcdint_t
>(x + p.
x),
110 static_cast<lcdint_t>(y + p.
y) };
119 return {
static_cast<lcdint_t
>(x >> bits),
120 static_cast<lcdint_t>(y >> bits) };
129 return {
static_cast<lcdint_t
>(x << bits),
130 static_cast<lcdint_t>(y << bits) };
139 return {
static_cast<lcdint_t
>(x / d),
140 static_cast<lcdint_t>(y / d) };
_NanoPoint operator-(const _NanoPoint &p)
void setPoint(lcdint_t px, lcdint_t py)
_NanoPoint operator+(const _NanoPoint &p)
_NanoPoint operator>>(const uint8_t bits)
_NanoPoint & operator<<=(const uint8_t bits)
_NanoPoint & operator>>=(const uint8_t bits)
_NanoPoint & operator+=(const _NanoPoint &p)
_NanoPoint operator/(const int16_t d)
_NanoPoint & operator-=(const _NanoPoint &p)
struct _NanoPoint NanoPoint
_NanoPoint operator<<(const uint8_t bits)