Class: DiscretizationOptions

DiscretizationOptions

new DiscretizationOptions(options)

base/geometry/support/DiscretizationOptions.js, line 3

额外离散参数类

Name Type Description
options Object

构造参数

Name Type Default Description
angleStep Number 1 可选

离散角度步长,单位度

isClockwise Boolean true 可选

三点构成的弧段是否是顺时针,顺时针是指与钟表指针转动方向相同的旋转方向

isIncludeEndPoint Boolean false 可选

返回的点坐标是否包含是否包含终点

Members

angleStepNumber

离散角度步长,单位度

Default Value:
1

isClockwiseBoolean

三点构成的弧段是否是顺时针

Default Value:
true

isIncludeEndPointBoolean

返回的点坐标是否包含是否包含终点

Default Value:
false

Methods

DiscretizationOptions.fromJSON(json)

base/geometry/support/DiscretizationOptions.js, line 43

通过传入的json构造并返回一个新的对象

Name Type Description
json Object 可选

JSON对象

toJSON(){Object}

base/geometry/support/DiscretizationOptions.js, line 52

导出为json对象

Returns:
Type Description
Object json对象