跳到主要内容

KCurve2d.isEqual() method

检查两个曲线在指定容差下是否相等。

Check whether two curves are equal with specified tolerance.

Signature:

isEqual(curve: KCurve2d, tolerance?: number): boolean;

Links: isEqual(curve: KCurve2d, tolerance?: number): boolean;

Parameters

Parameter

Type

Description

curve

KCurve2d

tolerance

number

(Optional) 指定容差,默认容差是1e-6。

The specified tolerance.The default value is 1e-6.

Returns:

boolean

如果相等上返回true。

Return true if equal, otherwise return false.