Methods
(async, static) append(dot3D)
添加一个点
Parameters:
| Name | Type | Description |
|---|---|---|
dot3D |
object:Dot3D | 待添加的点对象 |
Returns:
新添加点的索引,小于0失败
(async, static) appendDots3D(dots3D)
将另一个Dots3D的点添加到尾端
Parameters:
| Name | Type | Description |
|---|---|---|
dots3D |
object:Dots3D | 待添加的点序列对象 |
Returns:
大于0成功,否则失败
(async, static) clear()
清空
Returns:
大于0成功,否则失败
(async, static) clone()
拷贝坐标点序列
Returns:
拷贝出的坐标点序列
(async, static) createObj() → {Promise.<Dots3D>}
构造一个新的Dots3D对象
Returns:
- Type
- Promise.<Dots3D>
(async, static) get(index)
返回索引处的点
Parameters:
| Name | Type | Description |
|---|---|---|
index |
待查找的索引号 |
Returns:
索引处的点
(async, static) remove(index)
删除索引处的点
Parameters:
| Name | Type | Description |
|---|---|---|
index |
待删除的点索引 |
Returns:
大于0成功,否则失败
(async, static) size()
返回数目
Returns:
数目