跳到主要内容

IDP.Math.KGeomLib.intersectIntervals() method

求出两组区间的所有重叠部分。

Get the common parts of the two groups of interval.

Signature:

intersectIntervals(intervals1: KInterval[], intervals2: KInterval[]): KInterval[];

Links: intersectIntervals(intervals1: KInterval[], intervals2: KInterval[]): KInterval[];

Parameters

Parameter

Type

Description

intervals1

KInterval[]

输入区间集合1。

The input first interval array.

intervals2

KInterval[]

输入区间集合2。

The input second interval array.

Returns:

KInterval[]

返回两组区间的所有重叠部分。

Return the common parts of the two groups of interval.