ドキュメント

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.