Skip to content
On this page

mxcad API 文档 / McGePoint3dArray

Class: McGePoint3dArray

表示三维点的数组

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new McGePoint3dArray(imp?)

构造函数。

Parameters

NameType
imp?object

Properties

imp

imp: any

Methods

append

append(val): void

添加一个值

Parameters

NameType
valMcGePoint3d

Returns

void


at

at(index): McGePoint3d

得到数据元素的值

Parameters

NameType
indexnumber

Returns

McGePoint3d


clear

clear(): void

Returns

void


copy

copy(val): McGePoint3dArray

复制对象的值

Parameters

NameType
valMcGePoint3dArray | McGePoint3d[]

Returns

McGePoint3dArray


forEach

forEach(call): void

遍历数组

Parameters

NameType
call(val: McGePoint3d, index: number) => void

Returns

void


isEmpty

isEmpty(): boolean

返回数组为空

Returns

boolean


length

length(): number

返回数组长度

Returns

number


setAt

setAt(index, val): void

设置数据元素的值

Parameters

NameType
indexnumber
valMcGePoint3d

Returns

void