NumCpp
2.5.1
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
nc::utils::interp
constexpr double interp(double inValue1, double inValue2, double inPercent) noexcept
Definition:
Utils/interp.hpp:43
nc
Definition:
Coordinate.hpp:45
include
NumCpp
Utils
interp.hpp
Generated by
1.9.1