Version: Unity 6.5 (6000.5)
LanguageEnglish
  • C#

Plane.SignedDistanceToPoint

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public float SignedDistanceToPoint(float3 point);

Parameters

Parameter Description
point Point to find the signed distance with.

Returns

float Signed distance of the point from the plane.

Description

Get the signed distance from the point to the plane.

Plane must be normalized prior to calling this function. Distance is positive if point is on side of the plane the normal points to, negative if on the opposite side and zero if the point lies in the plane. Avoid comparing equality with 0.0f when testing if a point lies exactly in the plane and use an approximate comparison instead.