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