docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CurveToSplineT

    CurveToSplineT<T>(T, float)

    Given an interpolation value for a curve, calculate the relative normalized spline interpolation.

    Declaration
    public static float CurveToSplineT<T>(this T spline, float curve) where T : ISpline
    Parameters
    Type Name Description
    T spline

    The target spline.

    float curve

    A curve index and normalized interpolation. The curve index is represented by the integer part of the float, and interpolation is the fractional part. This is the format used by Knot.

    Returns
    Type Description
    float

    An interpolation value relative to normalized Spline length (0 to 1).

    Type Parameters
    Name Description
    T

    A type implementing ISpline.

    See Also
    SplineToCurveT<T>(T, float, out float)
    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)