イージングによりシンプルに遷移する値のクラスです。
More...
#include <EasingFunctions.hpp>
template<typename TValue, typename TTime = float>
class ln::EasingValue< TValue, TTime >
イージングによりシンプルに遷移する値のクラスです。
◆ 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>
現在の値を取得します。
経過時間が 0 以前の場合は 開始時の値を、経過時間が 変更にかける時間以上 の場合は 終了時の値 を返します。
The documentation for this class was generated from the following file: