docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetBounds

    GetBounds<T>(T)

    Calculate the bounding box of a Spline.

    Declaration
    public static Bounds GetBounds<T>(this T spline) where T : ISpline
    Parameters
    Type Name Description
    T spline

    The spline for which to calculate bounds.

    Returns
    Type Description
    Bounds

    The bounds of a spline.

    Type Parameters
    Name Description
    T

    A type implementing ISpline.

    GetBounds<T>(T, float4x4)

    Creates a bounding box for a spline.

    Declaration
    public static Bounds GetBounds<T>(this T spline, float4x4 transform) where T : ISpline
    Parameters
    Type Name Description
    T spline

    The spline to calculate bounds for.

    float4x4 transform

    The matrix to transform the spline's elements with.

    Returns
    Type Description
    Bounds

    The bounds of a spline.

    Type Parameters
    Name Description
    T

    A type implementing ISpline.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)