docs.unity.cn
    Show / Hide Table of Contents

    Method Encapsulate

    Encapsulate(MinMaxAABB)

    Make this AABB into the smallest AABB that contains both this AABB, and another AABB.

    Declaration
    public void Encapsulate(MinMaxAABB aabb)
    Parameters
    Type Name Description
    MinMaxAABB aabb

    The other AABB

    Encapsulate(float3)

    Encapsulates the given AABB.

    Declaration
    public void Encapsulate(float3 point)
    Parameters
    Type Name Description
    float3 point

    AABB to encapsulate.

    Remarks

    Modifies this AABB so that it contains the given AABB. If the given AABB is already contained by this AABB, then this AABB doesn't change.

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