// 생성 및 초기화
Point pt1; // pt1 = (0, 0)
pt1.x = 5; pt1.y = 10; // pt1 = (5, 10)
Point pt2(10, 30); // pt2 = (10, 30)
// 연산
Point pt3 = pt1 + pt2; // pt3 = [15, 40]
Point pt4 = pt1 * 2; // pt4 = [10, 20]
int d1 = pt1.dot(pt2); // d1 = 350
bool b1 = (pt1 == pt2); // b1 = false
// 생성 및 초기화
Size sz1, sz2(10, 20); // sz1 = [0 x 0], sz2 = [10 x 20]
sz1.width = 5; sz1.height = 10; // sz1 = [5 x 10]
// 연산
Size sz3 = sz1 + sz2; // sz3 = [15 x 30]
Size sz4 = sz1 * 2; // sz4 = [10 x 20]
int area1 = sz4.area(); // area1 = 200
// 생성 및 초기화
Rect rc1; // rc1 = [0 x 0 from (0, 0)]
Rect rc(10, 10, 60, 40); // rc2 = [60 x 40 from (10, 10)]
// 연산
Rect rc3 = rc1 + Size(50, 40); // rc3 = [50 x 40 from (0, 0)]
Rect rc4 = rc2 + Point(10, 10); // rc4 = [60 x 40 from (20, 20)]
// 논리연산
Rect rc5 = rc3 & rc4; // rc5 = [30 x 20 from (10, 10)]
Rect rc6 = rc3 | rc4; // rc6 = [80 x 60 from (0, 0)]
https://drive.google.com/uc?id=19JPAWtd13DOAYLpriRPXmYZ6Nuc75454
// 생성 및 초기화
RotatedRect rr1(Point2f(40, 30), Size2f(40, 20), 30.f); // 아래 그림 a 참조
// 사각형의 바운딩 영역 확인
Rect br = rr1.boundingRect(); // 아래 그림 b 참조
https://drive.google.com/uc?id=1xoI2mxZXDRgh1-bjz6dtUEDB1pshDACK