mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Add IScrollAlgorithm.TimeAt()
This commit is contained in:
@ -17,6 +17,9 @@ namespace osu.Game.Rulesets.UI.Scrolling.Algorithms
|
||||
public float PositionAt(double time, double currentTime, double timeRange, float scrollLength)
|
||||
=> (float)((time - currentTime) / timeRange * scrollLength);
|
||||
|
||||
public double TimeAt(float position, double currentTime, double timeRange, float scrollLength)
|
||||
=> position * timeRange / scrollLength + currentTime;
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user