Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetDistanceToPoint

Returns a signed distance from plane to point.
Read time 1 minuteLast updated 9 days ago

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.