NPoint::NPoint( const NPoint & that ): p_( new Private( that.x(), that.y() ) ) { }
bool operator==(NPoint p1, NPoint p2) { return p1.x() == p2.x() && p1.y() == p2.y(); }
NPoint operator-=(NPoint point) { xVal -= point.x(); yVal -= point.y(); return *this; }
/* * \brief Checks if given point is in nxt lcd. */ bool pointInLcd(NPoint p) { return LCD::pixelInLcd(p.x(), p.y()); }
const NPoint operator-(NPoint p1, NPoint p2) { return NPoint(p1.x() - p2.x(), p2.y() - p2.y()); }