Lumino
ln::EasingValue< TValue, TTime > Class Template Reference

イージングによりシンプルに遷移する値のクラスです。 More...

#include <EasingFunctions.hpp>

Public Member Functions

 EasingValue ()
 コンストラクタ
 
void start (const TValue &startValue, const TValue &targetValue, const TTime &time)
 値の遷移を開始します。 More...
 
void start (const TValue &targetValue, const TTime &time)
 値の遷移を開始します。開始として現在の値を使用します。 More...
 
void setWrapMode (AnimationWrapMode mode)
 アニメーションの繰り返し方法を設定します。
 
void setEasingFunction (EasingFunction easing)
 イージング関数を設定します。
 
void setTime (const TTime &time)
 経過時間を設定します。
 
void advanceTime (const TTime &deltaTime)
 指定した値だけ時間を進めます。
 
const TValue & value () const
 現在の値を取得します。 More...
 
const TValue & startValue () const
 開始値を取得します。
 
const TValue & targetValue () const
 終了値を取得します。
 
const TTime & currentTime () const
 現在の経過時間を取得します。
 
bool isFinished () const
 値の遷移が完了しているかを確認します。
 

Detailed Description

template<typename TValue, typename TTime = float>
class ln::EasingValue< TValue, TTime >

イージングによりシンプルに遷移する値のクラスです。

Member Function Documentation

◆ start() [1/2]

template<typename TValue, typename TTime = float>
void ln::EasingValue< TValue, TTime >::start ( const TValue &  startValue,
const TValue &  targetValue,
const TTime &  time 
)
inline

値の遷移を開始します。

Parameters
[in]startValue: 開始値
[in]targetValue: 終了値
[in]time: 変更にかける時間

◆ start() [2/2]

template<typename TValue, typename TTime = float>
void ln::EasingValue< TValue, TTime >::start ( const TValue &  targetValue,
const TTime &  time 
)
inline

値の遷移を開始します。開始として現在の値を使用します。

Parameters
[in]targetValue: 終了値
[in]time: 変更にかける時間

◆ value()

template<typename TValue, typename TTime = float>
const TValue& ln::EasingValue< TValue, TTime >::value ( ) const
inline

現在の値を取得します。

経過時間が 0 以前の場合は 開始時の値を、経過時間が 変更にかける時間以上 の場合は 終了時の値 を返します。


The documentation for this class was generated from the following file: