2012-07-05 6 views

답변

1

직사각형의 중심은 대각선 (또는 모든 꼭지점의 산술 평균)의 교차점에 있습니다. 따라서 경사 후에 vertice 좌표를 찾는 것만으로도 충분합니다.

1

직사각형의 중심은 기울기가 변경되지 않습니다. 직사각형의 좌표 만 다음 방정식을 사용하여 변경됩니다.

x′=xcosθ − ysinθ 
y′=xsinθ + ycosθ 

,

(x,y)-initial co-ordinates of rectangle. 
    (x',y')-final co-ordinates of rectangle. 
    θ-angle of inclination. 

상세히위한 link을 참조.