NumCpp  2.7.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
Utils/interp.hpp
Go to the documentation of this file.
1 #pragma once
29 
30 namespace nc
31 {
32  namespace utils
33  {
34  //============================================================================
43  constexpr double interp(double inValue1, double inValue2, double inPercent) noexcept
44  {
45  return inValue1 * (1.0 - inPercent) + inValue2 * inPercent;
46  }
47  } // namespace utils
48 } // namespace nc
constexpr double interp(double inValue1, double inValue2, double inPercent) noexcept
Definition: Utils/interp.hpp:43
Definition: Coordinate.hpp:45