이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
rotate
polyshape
회전
설명
예제
정사각형 회전하기
정사각형인 polyin
을 만들고 점 (0,0)을 기준으로 시계 반대 방향으로 45도 회전합니다.
polyin = polyshape([0 0 1 1],[1 0 0 1]); poly1 = rotate(polyin,45);
점 (1,0)을 기준으로 polyin
45도 회전합니다.
poly2 = rotate(polyin,45,[1 0]);
세 개의 다각형을 모두 플로팅합니다.
plot([polyin poly1 poly2])
axis equal
입력 인수
polyin
— 입력 polyshape
스칼라 | 벡터 | 행렬 | 다차원 배열
입력 polyshape
로, 스칼라, 벡터, 행렬 또는 다차원 배열로 지정됩니다.
데이터형: polyshape
theta
— 회전 각도
스칼라
회전 각도로, 스칼라 각도로 지정됩니다. 입력 polyshape
가 배열일 때 배열의 각 요소는 theta
도 회전합니다. theta
가 양수이면 시계 반대 방향으로, theta
가 음수이면 시계 방향으로 회전합니다.
데이터형: double
| single
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
refpoint
— 기준점
[0 0]
| 요소를 2개 가진 행 벡터
기준점으로, x 좌표와 y 좌표의 2개 요소를 갖는 행 벡터로 지정됩니다. rotate
함수는 기준점을 기준으로 회전합니다. 입력 polyshape
가 배열일 때 배열의 각 요소는 refpoint
를 기준으로 회전됩니다.
데이터형: double
| single
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
버전 내역
R2017b에 개발됨
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)