docs.unity.cn
    Show / Hide Table of Contents

    Class BoundsExtensions

    Extension methods for the Bounds type

    Inheritance
    Object
    BoundsExtensions
    Namespace: Unity.XRTools.Utils
    Syntax
    public static class BoundsExtensions : object

    Methods

    ContainsCompletely(Bounds, Bounds)

    Returns a whether the given bounds are contained completely within this one

    Declaration
    public static bool ContainsCompletely(this Bounds outerBounds, Bounds innerBounds)
    Parameters
    Type Name Description
    Bounds outerBounds

    The outer bounds which may contain the inner bounds

    Bounds innerBounds

    The inner bounds that may or may not fit within outerBounds

    Returns
    Type Description
    Boolean

    True if outerBounds contains innerBounds completely

    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on Thursday, December 2, 2021
    Terms of use