docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SignedDistanceToPoint

    SignedDistanceToPoint(float3)

    Get the signed distance from the point to the plane.

    Declaration
    public float SignedDistanceToPoint(float3 point)
    Parameters
    Type Name Description
    float3 point

    Point to find the signed distance with.

    Returns
    Type Description
    float

    Signed distance of the point from the plane.

    Remarks

    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)