MVVM frame work done, under unit test
This commit is contained in:
@@ -36,7 +36,6 @@ namespace StgSharp
|
||||
{
|
||||
public class TimeFunction
|
||||
{
|
||||
|
||||
private float _beginning, _ending;
|
||||
private Func<float, float> _timeRelatedCalculation;
|
||||
private TimeSpanProvider _timeProvider;
|
||||
@@ -106,6 +105,12 @@ namespace StgSharp
|
||||
return new TimeFunction(_timeProvider, func, range);
|
||||
}
|
||||
|
||||
public virtual TimeFunction Reverse()
|
||||
{
|
||||
float range = _ending - _beginning;
|
||||
return new TimeFunction(_timeProvider, p => _timeRelatedCalculation(range - p) ,range);
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
float range = _ending - _beginning;
|
||||
|
||||
Reference in New Issue
Block a user