Fix return type of geom::lerp
This commit is contained in:
parent
443fa3d8ca
commit
d4f08acf24
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ namespace psemek::geom
|
|||
}
|
||||
|
||||
template <typename X, typename T>
|
||||
X lerp(X const & x0, X const & x1, T const & t)
|
||||
auto lerp(X const & x0, X const & x1, T const & t) -> decltype(x0 * t)
|
||||
{
|
||||
return x0 * (T(1) - t) + x1 * t;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue