예제 #1
0
void main()
{
	Rect r (10,10,20,20);

	r.InflateRect(10, 10);
	r.print();

	int s = r.GetArea();

	if ( r.PtInRect(15, 15))
		cout << "(15,15) is In r" << endl;
}
예제 #2
0
파일: BinPacker.hpp 프로젝트: VDrift/sdfont
 bool operator<(const Rect& rect) const {
     return GetArea() < rect.GetArea();
 }