docs.unity3d.com
    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].

    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 SlerpQuaternion : IInterpolator<quaternion>

    Methods

    Interpolate(quaternion, quaternion, Single)

    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.

    Single t

    Interpolation ratio.

    Returns
    Type Description
    quaternion

    A quaternion spherically interpolated between quaternions a and b.

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