docs.unity.cn
    Show / Hide Table of Contents

    Struct LerpFloat4

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

    Namespace: UnityEngine.Splines.Interpolators
    Syntax
    public struct LerpFloat4 : IInterpolator<float4>

    Methods

    Interpolate(float4, float4, Single)

    Linearly interpolates between a and b by t.

    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 © 2022 Unity Technologies
    Generated by DocFX
    on Monday, April 4, 2022
    Terms of use