LinearInterpolation.h
Go to the documentation of this file.
1
/*
2
* Copyright 2015-2020 CNRS-UM LIRMM, CNRS-AIST JRL
3
*/
4
5
#pragma once
6
7
namespace
mc_trajectory
8
{
9
10
template
<
typename
T>
11
struct
LinearInterpolation
12
{
30
T
operator()
(
const
T & v1,
const
T & v2,
double
t)
const
{
return
(1 - t) * v1 + t * v2; }
31
};
32
33
}
// namespace mc_trajectory
mc_trajectory::LinearInterpolation::operator()
T operator()(const T &v1, const T &v2, double t) const
Linear interpolation between two values.
Definition:
LinearInterpolation.h:30
mc_trajectory
Definition:
BSpline.h:14
mc_trajectory::LinearInterpolation
Definition:
LinearInterpolation.h:11
include
mc_trajectory
LinearInterpolation.h
Generated by
1.8.17