docs.unity.cn
    Show / Hide Table of Contents

    Struct SmoothStepFloat4

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

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.Splines.Interpolators
    Syntax
    public struct SmoothStepFloat4 : IInterpolator<float4>

    Methods

    Interpolate(float4, float4, Single)

    Interpolates between a and b by ratio t with smoothing at the limits. This function interpolates between min and max in a similar way to Lerp. However, the interpolation will gradually speed up from the start and slow down toward the end. This is useful for creating natural-looking animation, fading and other transitions.

    Declaration
    public float4 Interpolate(float4 a, float4 b, float t)
    Parameters
    Type Name Description
    float4 a

    Start value, returned when t = 0.

    float4 b

    End value, returned when t = 1.

    Single t

    Interpolation ratio.

    Returns
    Type Description
    float4

    The interpolated result between the two values.

    Implements
    IInterpolator<T>.Interpolate(T, T, Single)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, April 27, 2023