docs.unity.cn
    Show / Hide Table of Contents

    Struct SlerpFloat2

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

    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 SlerpFloat2 : IInterpolator<float2>

    Methods

    Interpolate(float2, float2, Single)

    Spherically interpolates between a and b by t.

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

    Start value, returned when t = 0.

    float2 b

    End value, returned when t = 1.

    Single t

    Interpolation ratio.

    Returns
    Type Description
    float2

    The spherically 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