Skip to content

Api > Plane > GetDistanceToPoint()


Plane.GetDistanceToPoint(Vector3 point)⚓︎

Returns a signed distance from plane to point.

Parameters:⚓︎

Name Type Description
point Vector3 point

Returns:⚓︎

type Description
number distance from plane to point.

Usage⚓︎

---@type Plane
local plane;

---@type Vector3
local point;


local val0 = plane.GetDistanceToPoint(point)

Extra Detail⚓︎

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.