docs.unity3d.com
    目次を表示する/隠す

    Interface IInterpolator<T>

    An interface that provides interpolation functionality.

    Namespace: Unity.LiveCapture
    Syntax
    public interface IInterpolator<T>
    Type Parameters
    Name Description
    T

    The type of data to interpolate.

    Methods

    Interpolate(in T, in T, Single)

    Interpolates between a and b by factor t.

    Declaration
    T Interpolate(in T a, in T b, float t)
    Parameters
    Type Name Description
    T a

    The value to interpolate from.

    T b

    To value to interpolate to.

    Single t

    The interpolation factor.

    Returns
    Type Description
    T

    The interpolated value.

    Remarks


    • When t is 0 returns a.
    • When t is 1 returns b.
    • When t is 0.5 returns the midpoint of a and b.
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)