mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 16:19:19 +02:00
Replace interpolate with std::lerp and glm::mix
This commit is contained in:
@@ -105,7 +105,7 @@ public:
|
||||
inline
|
||||
float
|
||||
GetRoll(double const Distance) const {
|
||||
return interpolate( fRoll1, fRoll2, static_cast<float>(Distance / fLength) ); }
|
||||
return std::lerp( fRoll1, fRoll2, static_cast<float>(Distance / fLength) ); }
|
||||
inline
|
||||
void
|
||||
GetRolls(float &r1, float &r2) const {
|
||||
|
||||
Reference in New Issue
Block a user