文档

Unity Engine

Unity Engine

GetDistanceToPoint

Returns a signed distance from plane to point.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

GetDistanceToPoint(Vector3)

Returns a signed distance from plane to point.
public readonly float GetDistanceToPoint(Vector3 point)

Parameters

point

Returns

Type

Description

float

Remarks

The value returned is positive if the point is on the side of the plane into which the plane's normal is facing, and negative otherwise.

GetDistanceToPoint(Vector3)

Returns a signed distance from plane to point.
public readonly float GetDistanceToPoint(in Vector3 point)

Parameters

point

Returns

Type

Description

float

Remarks

The value returned is positive if the point is on the side of the plane into which the plane's normal is facing, and negative otherwise.