Skip to content

Commit

Permalink
Fixed compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Segfaultd committed Dec 27, 2024
1 parent 6828635 commit d86888e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/framework/src/utils/interpolator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#include "interpolator.h"

#include <algorithm>

namespace math {
float Unlerp(float from, float to, float pos) {
if (std::abs(from - to) < std::numeric_limits<float>::epsilon()) {
Expand Down Expand Up @@ -105,4 +107,4 @@ namespace Framework::Utils {
Interpolator::Scalar* Interpolator::getScalar() {
return &_scalar;
}
}
}

0 comments on commit d86888e

Please sign in to comment.