KInterval.isEqual() method
判断当前区间和另外一个区间是否相等。
Returns true if this interval equals to another within specified tolerance.
Signature:
isEqual(other: KInterval, numTol?: number): boolean;
Links: isEqual(other: KInterval, numTol?: number): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
other | 另一个区间。 The other interval. | |
numTol | number | (Optional) 用于判断两个区间的起点和终点是否相等的容差。如果不提供,则使用全局容差。 The tolerance used to check whether the starts and ends of two intervals are equal. |
Returns:
boolean
如果两个区间的起点和终点在容差范围内,则返回真,否则为假。
True, if the starts and ends of two intervals are equal within tolerance. Otherwise, false.