Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetDistanceToPoint(Vector3)

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

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public 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.