docs.unity3d.com
Search Results for

    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.

    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)