docs.unity3d.com
    Show / Hide Table of Contents

    Class BoundsExtensions

    Extension methods for the Bounds type.

    Inheritance
    Object
    BoundsExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.XR.CoreUtils
    Syntax
    public static class BoundsExtensions

    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 completely encloses innerBounds.

    Remarks

    If a boundary value is the same for both Bounds objects, that boundary is considered to be within the outerBounds.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023