28 #ifndef _NANO_POINT_H_ 29 #define _NANO_POINT_H_ 113 return {
static_cast<lcdint_t>(x - p.
x), static_cast<lcdint_t>(y - p.
y)};
122 return {
static_cast<lcdint_t>(x + p.
x), static_cast<lcdint_t>(y + p.
y)};
131 return {
static_cast<lcdint_t>(x >> bits), static_cast<lcdint_t>(y >> bits)};
140 return {
static_cast<lcdint_t>(x << bits), static_cast<lcdint_t>(y << bits)};
149 return {
static_cast<lcdint_t>(x / d), static_cast<lcdint_t>(y / d)};
154 #ifndef DOXYGEN_SHOULD_SKIP_THIS 167 return (p1.
x == p2.
x) && (p1.
y == p2.
y);
174 #endif // DOXYGEN_SHOULD_SKIP_THIS _NanoPoint operator-(const _NanoPoint &p)
struct _NanoPoint NanoPoint
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) const
_NanoPoint & operator>>=(const uint8_t bits)
_NanoPoint operator/(const int16_t d) const
_NanoPoint & operator+=(const _NanoPoint &p)
_NanoPoint & operator-=(const _NanoPoint &p)
_NanoPoint operator>>(const uint8_t bits) const