跳到主要内容

KCurve3d.isPointOnCurve() method

检查传入点在指定容差下是否位于曲线上。

Check whether the input point is on the curve or not with specified tolerance.

Signature:

isPointOnCurve(point: KPoint3d, tolerance?: number): boolean;

Links: isPointOnCurve(point: KPoint3d, tolerance?: number): boolean;

Parameters

Parameter

Type

Description

point

KPoint3d

传入点。

The input point.

tolerance

number

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

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

Returns:

boolean

如果在曲线上返回true。

Return true if on the curve, otherwise return false.