docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DistanceSq

    DistanceSq(float3)

    Determines the squared distance from a point to the nearest point to it that is contained by an AABB.

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

    The point to find the distance from

    Returns
    Type Description
    float

    The squared distance from the point to the nearest point to it that is contained by the AABB.

    In This Article
    Back to top
    Copyright © 2024 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)