MeatMotion

IntMotionAdapter

補間した値をIntegerOptionsの丸め規則に従ってInt値に変換します。

Namespace
MeatMotion.Adapters
Assembly
MeatMotion

メンバー一覧へ

public readonly struct IntMotionAdapter : IMotionAdapter<int, IntegerOptions>, IProgressOnlyAdapter
MotionAdapters.cs · L37

メンバー

Evaluate

開始値・終了値・オプションを参照で受け取り、contextに対応する補間値を返します。

public int Evaluate(ref int startValue, ref int endValue, ref IntegerOptions options, in MotionEvaluationContext context)
引数と戻り値
startValue
ref int 補間の開始値。
endValue
ref int 補間の終了値。
options
ref IntegerOptions この値型のアダプターに渡す設定。
context
in MotionEvaluationContext イーズ適用後のProgressと経過秒数Time。
戻り値
int