Class: Dots3D

Dots3D()

new Dots3D()

实现对三维坐标点的类型定义
Source:

Methods

(async, static) append(dot3D)

添加一个点
Parameters:
Name Type Description
dot3D object:Dot3D 待添加的点对象
Source:
Returns:
新添加点的索引,小于0失败

(async, static) appendDots3D(dots3D)

将另一个Dots3D的点添加到尾端
Parameters:
Name Type Description
dots3D object:Dots3D 待添加的点序列对象
Source:
Returns:
大于0成功,否则失败

(async, static) clear()

清空
Source:
Returns:
大于0成功,否则失败

(async, static) clone()

拷贝坐标点序列
Source:
Returns:
拷贝出的坐标点序列

(async, static) createObj() → {Promise.<Dots3D>}

构造一个新的Dots3D对象
Source:
Returns:
Type
Promise.<Dots3D>

(async, static) get(index)

返回索引处的点
Parameters:
Name Type Description
index 待查找的索引号
Source:
Returns:
索引处的点

(async, static) remove(index)

删除索引处的点
Parameters:
Name Type Description
index 待删除的点索引
Source:
Returns:
大于0成功,否则失败

(async, static) size()

返回数目
Source:
Returns:
数目