docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SlerpQuaternion

    Spherically interpolates between quaternions a and b by ratio t. The parameter t is clamped b the range [0, 1].

    Implements
    IInterpolator<quaternion>
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Splines.Interpolators
    Assembly: Unity.Splines.dll
    Syntax
    public struct SlerpQuaternion : IInterpolator<quaternion>

    Methods

    Interpolate(quaternion, quaternion, float)

    Spherically interpolates between quaternions a and b by ratio t. The parameter t is clamped b the range [0, 1].

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

    Start value, returned when t = 0.

    quaternion b

    End value, returned when t = 1.

    float t

    Interpolation ratio.

    Returns
    Type Description
    quaternion

    A quaternion spherically interpolated between quaternions a and b.

    Implements

    IInterpolator<T>
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)