MC-Basic:CASTLOCATION/zh-hans

From SoftMC-Wiki
< MC-Basic:CASTLOCATION
Revision as of 02:10, 26 April 2017 by Chi (talk | contribs) (Created page with "{{Languages}} == 缩写 == == 格式 == <''location_variable''> = castlocation (<''long_scalar_expression''>, <''long_expression''>) <''location_variable''> = castlocation (...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
语言: English  • 中文(简体)‎

缩写

格式

<location_variable> = castlocation (<long_scalar_expression>, <long_expression>)

<location_variable> = castlocation (<double_scalar_expression>, <long_expression>)

<location_variable> = castlocation (<long_array>, <long_expression>)

<location_variable> = castlocation (<double_array>, <long_expression>)


适用版本

从版本4.9.11起

描述

使用第二个long-type参数给出的机器人类型创建并返回通用位置类型,而第一个参数取坐标值。 如果第一个参数是标量,则结果点将由相同的坐标组成。 使用数组作为第一个参数将导致由第一个“坐标数”(由机器人类型确定)阵列元素组成的点。

类型

Location

取值范围

单位

默认

使用范围

Configuration, Task, Terminal

限制

  • 只能使用单维数组作为参数。
  • 数组元素数必须等于或大于坐标数。

例子

GenLocation = CASTLOCATION(0.5, TYPE_XYZ)

? CASTLOCATION(ArrayOf6Longs, TYPE_XYZR)


参见