translate
平移 polyshape
说明
示例
输入参数
polyin
— 输入 polyshape
标量 | 向量 | 矩阵 | 多维数组
输入 polyshape
,指定为标量、向量、矩阵或多维数组。
数据类型: polyshape
v
— 平移距离
二元素行向量
平移距离,指定为二元素行向量。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
扩展功能
C/C++ 代码生成
使用 MATLAB® Coder™ 生成 C 代码和 C++ 代码。
用法说明和限制:
必须启用动态内存分配才能进行代码生成。
名称-值对组必须为编译时常量。
版本历史记录
在 R2017b 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 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)