29 #ifndef _NANO_POINT_H_ 30 #define _NANO_POINT_H_ 58 void setPoint(lcdint_t px, lcdint_t py) { x=px; y=py; };
110 return {
static_cast<lcdint_t
>(x - p.
x),
111 static_cast<lcdint_t>(y - p.
y) };
120 return {
static_cast<lcdint_t
>(x + p.
x),
121 static_cast<lcdint_t>(y + p.
y) };
130 return {
static_cast<lcdint_t
>(x >> bits),
131 static_cast<lcdint_t>(y >> bits) };
140 return {
static_cast<lcdint_t
>(x << bits),
141 static_cast<lcdint_t>(y << bits) };
150 return {
static_cast<lcdint_t
>(x / d),
151 static_cast<lcdint_t>(y / d) };
156 #ifndef DOXYGEN_SHOULD_SKIP_THIS 169 return (p1.
x == p2.
x) && (p1.
y == p2.
y);
176 #endif // DOXYGEN_SHOULD_SKIP_THIS _NanoPoint operator-(const _NanoPoint &p)
void setPoint(lcdint_t px, lcdint_t py)
struct _NanoPoint NanoPoint
_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