跳到主要内容

KSurface.signedDistanceTo() method

获得点到面的距离, 如果点在面的正向则距离为正,否则为负。

Get signed distance between the point and the plane. If the point is on the positive normal side, the sign is +, otherwise it's -

Signature:

signedDistanceTo(point: KPoint3d): number;

Links: signedDistanceTo(point: KPoint3d): number;

Parameters

Parameter

Type

Description

point

KPoint3d

传入点。

The input point.

Returns:

number

传入的点到面的距离。

The distance from the input point to this surface.