NumCpp
1.0
A C++ implementation of the Python Numpy library
Utils/interp.hpp
Go to the documentation of this file.
1
#pragma once
30
31
namespace
nc
32
{
33
namespace
utils
34
{
35
//============================================================================
44
constexpr
double
interp
(
double
inValue1,
double
inValue2,
double
inPercent) noexcept
45
{
46
return
inValue1 * (1.0 - inPercent) + inValue2 * inPercent;
47
}
48
}
49
}
nc::utils::interp
constexpr double interp(double inValue1, double inValue2, double inPercent) noexcept
Definition:
Utils/interp.hpp:44
nc
Definition:
Coordinate.hpp:45
include
NumCpp
Utils
interp.hpp
Generated by
1.8.17