KPoint2d.isEqual() method
检查两个点在特定容差下是否相等。
Check whether two points are equal with specified tolerance.
Signature:
isEqual(other: KPoint2d, tolerance?: number): boolean;
Links: isEqual(other: KPoint2d, tolerance?: number): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
other | 需要比较的点。 The point to compare this point with. | |
tolerance | number | (Optional) 指定容差,默认值为1e-6。 The specified tolerance.The default value is 1e-6. |
Returns:
boolean
如果相等则返回true。
Return true if equal, otherwise return false.