docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetNormalizedInterpolation

    GetNormalizedInterpolation<TSplineType>(TSplineType, float)

    Given a time value using a certain PathIndexUnit type, calculate the normalized time value regarding a specific spline.

    Declaration
    public float GetNormalizedInterpolation<TSplineType>(TSplineType spline, float t) where TSplineType : ISpline
    Parameters
    Type Name Description
    TSplineType spline

    The Spline to use for the conversion, this is necessary to compute Normalized and Distance PathIndexUnits.

    float t

    The time to normalize in the original PathIndexUnit.

    Returns
    Type Description
    float

    The normalized time.

    Type Parameters
    Name Description
    TSplineType

    The Spline type.

    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)