이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
translate
polyshape
평행 이동
설명
예제
정사각형 평행 이동하기
정사각형을 만든 다음 해당 정사각형을 오른쪽으로 2단위, 위로 1단위만큼 평행 이동합니다. 정사각형 2개를 모두 플로팅합니다.
polyin = polyshape([0 0 1 1],[1 0 0 1]);
polyout = translate(polyin,[2 1]);
plot([polyin polyout])
axis equal
입력 인수
polyin
— 입력 polyshape
스칼라 | 벡터 | 행렬 | 다차원 배열
입력 polyshape
로, 스칼라, 벡터, 행렬 또는 다차원 배열로 지정됩니다.
데이터형: polyshape
v
— 평행 이동 거리
요소를 2개 가진 행 벡터
평행 이동 거리로, 요소를 2개 가진 행 벡터로 지정됩니다. v
의 첫 번째 요소는 x 방향으로 평행 이동할 거리를 지정하며, 두 번째 요소는 y 방향으로 평행 이동할 거리를 지정합니다. 양수 거리는 오른쪽과 위로 평행 이동하며, 음수 거리는 왼쪽과 아래로 평행 이동합니다. 입력 polyshape
가 배열일 때 배열의 각 요소는 v
에 따라 평행 이동됩니다.
데이터형: double
| single
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
x
— x 평행 이동 거리
스칼라
x 평행 이동 거리로, 스칼라로 지정됩니다. 양수 거리는 오른쪽으로 평행 이동하며, 음수 거리는 왼쪽으로 평행 이동합니다. 입력 polyshape
가 배열일 때 배열의 각 요소는 x
에 따라 x 방향으로 평행 이동됩니다.
데이터형: double
| single
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
y
— y 평행 이동 거리
스칼라
y 평행 이동 거리로, 스칼라로 지정됩니다. 양수 거리는 위쪽으로 평행 이동하며, 음수 거리는 아래쪽으로 평행 이동합니다. 입력 polyshape
가 배열일 때 배열의 각 요소는 y
에 따라 y 방향으로 평행 이동됩니다.
데이터형: 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)