docs.unity3d.com
    Show / Hide Table of Contents

    Struct SmoothStepFloat3

    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 SmoothStepFloat3 : IInterpolator<float3>

    Methods

    Interpolate(float3, float3, 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 float3 Interpolate(float3 a, float3 b, float t)
    Parameters
    Type Name Description
    float3 a

    Start value, returned when t = 0.

    float3 b

    End value, returned when t = 1.

    Single t

    Interpolation ratio.

    Returns
    Type Description
    float3

    The interpolated result between the two values.

    Implements
    IInterpolator<T>.Interpolate(T, T, Single)
    Back to top
    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