Skip to main content

Plane.GetDistanceToPoint(Vector3 point)

Returns a signed distance from plane to point.

Parameters:

NameTypeDescription
pointVector3point

Returns:

typeDescription
numberdistance 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.