コンテンツにスキップ

Boundary

多角形の境界

多角形の1つの境界を表現する。 外側境界のときは反時計回り、内側境界のときは時計回りで格納される。

Constructors

new Boundary()

new Boundary(points, is_inner): Boundary

points は addOuterBoundary(), addInnerBoundary() と同じ形式である。

Parameters

Parameter Type Description
points number[] 境界の頂点データ
is_inner boolean 内側境界か?

Returns

Boundary

Accessors

num_points

get num_points(): number

頂点数

Returns

number


points

get points(): Float64Array<ArrayBufferLike>

頂点座標の配列

Returns

Float64Array<ArrayBufferLike>

Methods

isCCW()

static isCCW(points, num_points): boolean

境界は反時計回りか?

Parameters

Parameter Type Description
points number[] 境界の頂点データ
num_points number -

Returns

boolean

反時計回りのとき true, それ以外のとき false