docs.unity.cn
    Show / Hide Table of Contents

    Struct SlerpFloat3

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

    Namespace: UnityEngine.Splines.Interpolators
    Syntax
    public struct SlerpFloat3 : IInterpolator<float3>

    Methods

    Interpolate(float3, float3, Single)

    Spherically interpolates between a and b by t.

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