docs.unity3d.com
    Show / Hide Table of Contents

    Class InterpolatorUtility

    InterpolatorUtility provides easy access to all the different IInterpolator implementations.

    Inheritance
    Object
    InterpolatorUtility
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Splines
    Syntax
    public static class InterpolatorUtility

    Properties

    LerpColor

    Linearly interpolate between two values a and b by ratio t.

    Declaration
    public static IInterpolator<Color> LerpColor { get; }
    Property Value
    Type Description
    IInterpolator<Color>

    LerpFloat

    Linearly interpolate between two values a and b by ratio t.

    Declaration
    public static IInterpolator<float> LerpFloat { get; }
    Property Value
    Type Description
    IInterpolator<Single>

    LerpFloat2

    Linearly interpolate between two values a and b by ratio t.

    Declaration
    public static IInterpolator<float2> LerpFloat2 { get; }
    Property Value
    Type Description
    IInterpolator<float2>

    LerpFloat3

    Linearly interpolate between two values a and b by ratio t.

    Declaration
    public static IInterpolator<float3> LerpFloat3 { get; }
    Property Value
    Type Description
    IInterpolator<float3>

    LerpFloat4

    Linearly interpolate between two values a and b by ratio t.

    Declaration
    public static IInterpolator<float4> LerpFloat4 { get; }
    Property Value
    Type Description
    IInterpolator<float4>

    LerpQuaternion

    Linearly interpolate between two values a and b by ratio t.

    Declaration
    public static IInterpolator<quaternion> LerpQuaternion { get; }
    Property Value
    Type Description
    IInterpolator<quaternion>

    SlerpFloat2

    Spherically interpolate between two values a and b by ratio t.

    Declaration
    public static IInterpolator<float2> SlerpFloat2 { get; }
    Property Value
    Type Description
    IInterpolator<float2>

    SlerpFloat3

    Spherically interpolate between two values a and b by ratio t.

    Declaration
    public static IInterpolator<float3> SlerpFloat3 { get; }
    Property Value
    Type Description
    IInterpolator<float3>

    SlerpQuaternion

    Spherically interpolates between quaternions a and b by ratio t. The parameter t is clamped b the range [0, 1].

    Declaration
    public static IInterpolator<quaternion> SlerpQuaternion { get; }
    Property Value
    Type Description
    IInterpolator<quaternion>

    SmoothStepFloat

    Interpolate between two values a and b by ratio t with smoothing at the start and end.

    Declaration
    public static IInterpolator<float> SmoothStepFloat { get; }
    Property Value
    Type Description
    IInterpolator<Single>

    SmoothStepFloat2

    Interpolate between two values a and b by ratio t with smoothing at the start and end.

    Declaration
    public static IInterpolator<float2> SmoothStepFloat2 { get; }
    Property Value
    Type Description
    IInterpolator<float2>

    SmoothStepFloat3

    Interpolate between two values a and b by ratio t with smoothing at the start and end.

    Declaration
    public static IInterpolator<float3> SmoothStepFloat3 { get; }
    Property Value
    Type Description
    IInterpolator<float3>

    SmoothStepFloat4

    Interpolate between two values a and b by ratio t with smoothing at the start and end.

    Declaration
    public static IInterpolator<float4> SmoothStepFloat4 { get; }
    Property Value
    Type Description
    IInterpolator<float4>
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023