27 Slicer 27 Slicer
Search Results for

    Show / Hide Table of Contents

    Method SliceVector

    SliceVector(Vector3, Matrix4x4, Vector3, Vector3, Vector3, Vector3)

    Slices a single vector after transforming it by the supplied matrix.

    Declaration
    public static Vector3 SliceVector(Vector3 vert, Matrix4x4 matrix, Vector3 size, Vector3 completeBoundsCenter, Vector3 completeBoundsExtents, Vector3 slicedBoundsExtents)
    Parameters
    TypeNameDescription
    Vector3vert

    The vector to apply slicing to.

    Matrix4x4matrix

    The matrix to apply to the vector before slicing.

    Vector3size

    The final size (as a scale) of all the items that are to be sliced. See SlicerController.Size for more information.

    Vector3completeBoundsCenter

    The center vector of the complete bounding box of all sliced items after being sliced. See SlicerController.CompleteBounds for more information.

    Vector3completeBoundsExtents

    The extents vector of the complete bounding box of all sliced items after being sliced. See SlicerController.CompleteBounds for more information.

    Vector3slicedBoundsExtents

    The extents vector of the bounding box of the slices that will be made. See SlicerController.SlicedBounds for more information.

    Returns
    TypeDescription
    Vector3

    Returns the sliced vector.

    SliceVector(Vector3, Vector3, Bounds, Bounds)

    Slices a single vector.

    Declaration
    public static Vector3 SliceVector(Vector3 vert, Vector3 size, Bounds completeBounds, Bounds slicedBounds)
    Parameters
    TypeNameDescription
    Vector3vert

    The vector to apply slicing to.

    Vector3size

    The final size (as a scale) of all the items that are to be sliced. See SlicerController.Size for more information.

    BoundscompleteBounds

    The complete bounding box of all sliced items after being sliced. See SlicerController.CompleteBounds for more information.

    BoundsslicedBounds

    The bounding box of the slices that will be made. See SlicerController.SlicedBounds for more information.

    Returns
    TypeDescription
    Vector3

    Returns the sliced vector.

    SliceVector(Vector3, Vector3, Vector3, Vector3, Vector3)

    Slices a single vector.

    Declaration
    public static Vector3 SliceVector(Vector3 vert, Vector3 size, Vector3 completeBoundsCenter, Vector3 completeBoundsExtents, Vector3 slicedBoundsExtents)
    Parameters
    TypeNameDescription
    Vector3vert

    The vector to apply slicing to.

    Vector3size

    The final size (as a scale) of all the items that are to be sliced. See SlicerController.Size for more information.

    Vector3completeBoundsCenter

    The center vector of the complete bounding box of all sliced items after being sliced. See SlicerController.CompleteBounds for more information.

    Vector3completeBoundsExtents

    The extents vector of the complete bounding box of all sliced items after being sliced. See SlicerController.CompleteBounds for more information.

    Vector3slicedBoundsExtents

    The extents vector of the bounding box of the slices that will be made. See SlicerController.SlicedBounds for more information.

    Returns
    TypeDescription
    Vector3

    Returns the sliced vector.

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