跳到主要内容

KSurface.isPointOnSurface() method

以指定容差检查输入点是否在面上。

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

Signature:

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

Links: isPointOnSurface(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 surface, otherwise return false.