27 Slicer 27 Slicer
Search Results for

    Show / Hide Table of Contents

    Class BoundsUtility

    Contains useful methods for working with UnityEngine.Bounds.

    Inheritance
    Object
    BoundsUtility
    Namespace: Slicer.Core
    Assembly: 27Slicer.Core.dll
    Syntax
    public static class BoundsUtility

    Methods

    NameDescription
    AsBounds(BoxCollider)

    Converts the properties of a BoxCollider into a bounds, in the objects local space.

    CalculateBounds(Bounds, Transform, Transform)

    Converts a local bounds into a bounds in slicer space (local space of the parent SlicerComponent).

    Encapsulate(List<Vector3>)

    Encapsulates a collection of vectors into a bounds.

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

    Grow the bounds to encapsulate the bounds.

    Encapsulate(Nullable<Bounds>, Bounds)

    Grow the bounds to encapsulate the bounds.

    Encapsulate(Bounds, Nullable<Bounds>)

    Grow the bounds to encapsulate the bounds.

    GetVerts(Bounds, List<Vector3>)

    Converts a bounds into a collection of verts, one for each corner

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