跳到主要内容

IDP.Math.KGeomLib.uniteIntervals() method

对一组区间中重叠的区间进行合并简化。合并简化后的区间序列和原始区间序列覆盖相同的区域。

Simplify the intervals by uniting the intersected intervals.

Signature:

uniteIntervals(intervals: KInterval[]): KInterval[];

Links: uniteIntervals(intervals: KInterval[]): KInterval[];

Parameters

Parameter

Type

Description

intervals

KInterval[]

输入区间集合。

The input interval array. 返回合并简化后的区间集合。

Return the simplified intervals.

Returns:

KInterval[]