mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-23 21:23:35 +00:00
13 lines
257 B
C++
13 lines
257 B
C++
#pragma once
|
|
|
|
class SmoothFloat {
|
|
private:
|
|
float targetValue;
|
|
float remainingValue;
|
|
float lastAmount;
|
|
|
|
public:
|
|
SmoothFloat(); // 4J added
|
|
float getNewDeltaValue(float deltaValue, float accelerationAmount);
|
|
float getTargetValue();
|
|
}; |