docs.unity.cn
    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
    Single

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

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, September 20, 2023