27 Slicer 27 Slicer
Search Results for

    Show / Hide Table of Contents

    Method Encapsulate

    Encapsulate(Bounds, Nullable<Bounds>)

    Grow the bounds to encapsulate the bounds.

    Declaration
    public static Bounds Encapsulate(Bounds boundA, Bounds? boundB)
    Parameters
    TypeNameDescription
    BoundsboundA

    the first bounds to encapsulate.

    Nullable<Bounds>boundB

    the second bounds to encapsulate.

    Returns
    TypeDescription
    Bounds

    Returns the bounds that encapsulates both bounds.

    If boundB is null, boundA is returned.

    Encapsulate(Nullable<Bounds>, Bounds)

    Grow the bounds to encapsulate the bounds.

    Declaration
    public static Bounds Encapsulate(Bounds? boundA, Bounds boundB)
    Parameters
    TypeNameDescription
    Nullable<Bounds>boundA

    the first bounds to encapsulate.

    BoundsboundB

    the second bounds to encapsulate.

    Returns
    TypeDescription
    Bounds

    Returns the bounds that encapsulates both bounds.

    If boundA is null, boundB is returned.

    Encapsulate(Nullable<Bounds>, Nullable<Bounds>)

    Grow the bounds to encapsulate the bounds.

    Declaration
    public static Bounds? Encapsulate(Bounds? boundA, Bounds? boundB)
    Parameters
    TypeNameDescription
    Nullable<Bounds>boundA

    the first bounds to encapsulate.

    Nullable<Bounds>boundB

    the second bounds to encapsulate.

    Returns
    TypeDescription
    Nullable<Bounds>

    Returns the bounds that encapsulates both bounds.

    If one of the supplied bounds is null, the other supplied bounds is returned.

    If both bounds are null, null is returned.

    Encapsulate(List<Vector3>)

    Encapsulates a collection of vectors into a bounds.

    Declaration
    public static Bounds Encapsulate(List<Vector3> vectors)
    Parameters
    TypeNameDescription
    List<Vector3>vectors

    The vectors to encapsulate.

    Returns
    TypeDescription
    Bounds

    Returns the bounds that contains the supplied vectors.

      ☀
      ☾
      In This Article
      Back to top
      27 Slicer documentation | Copyright 2021 Deftly Games
      ☀
      ☾