mxcad API 文档 / McGePoint3dArray
Class: McGePoint3dArray
表示三维点的数组
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new McGePoint3dArray(imp?
)
构造函数。
Parameters
Name | Type |
---|---|
imp? | object |
Properties
imp
• imp: any
Methods
append
▸ append(val
): void
添加一个值
Parameters
Name | Type |
---|---|
val | McGePoint3d |
Returns
void
at
▸ at(index
): McGePoint3d
得到数据元素的值
Parameters
Name | Type |
---|---|
index | number |
Returns
clear
▸ clear(): void
Returns
void
copy
▸ copy(val
): McGePoint3dArray
复制对象的值
Parameters
Name | Type |
---|---|
val | McGePoint3dArray | McGePoint3d [] |
Returns
forEach
▸ forEach(call
): void
遍历数组
Parameters
Name | Type |
---|---|
call | (val : McGePoint3d , index : number ) => void |
Returns
void
isEmpty
▸ isEmpty(): boolean
返回数组为空
Returns
boolean
length
▸ length(): number
返回数组长度
Returns
number
setAt
▸ setAt(index
, val
): void
设置数据元素的值
Parameters
Name | Type |
---|---|
index | number |
val | McGePoint3d |
Returns
void