docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SplineToCurveT

    SplineToCurveT<T>(T, float, out float)

    Given a normalized interpolation (t) for a spline, calculate the curve index and curve-relative normalized interpolation.

    Declaration
    public static int SplineToCurveT<T>(this T spline, float splineT, out float curveT) where T : ISpline
    Parameters
    Type Name Description
    T spline

    The target spline.

    float splineT

    A normalized spline interpolation value to be converted into curve space.

    float curveT

    A normalized curve interpolation value.

    Returns
    Type Description
    int

    The curve index.

    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)