Esempio n. 1
0
	BoundBox operator- (const point_type& rhs) const {
		BoundBox result = *this;
		result.offset(point_type(-rhs.x, -rhs.y));
		return result;
	}
Esempio n. 2
0
	/**
	 * These add the given point to this bbox - they
	 * offset each corner by this point. Usful for calculating
	 * the location of a box in a higher scope, or for moving
	 * it around as part of a calculation
	 *
	 * Naturally, the {+,-} don't modify and the {+,-}= do.
	 */
	BoundBox operator+ (const point_type& rhs) const {
		BoundBox result = *this;
		result.offset(rhs);
		return result;
	}