Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
cool_lerp.hpp
Go to the documentation of this file.
1
#ifndef FANG_ROBOTICS_MCB_MATH_COOL_LERP_HPP
2
#define FANG_ROBOTICS_MCB_MATH_COOL_LERP_HPP
3
#include "
util/math/linear/vector_2d.hpp
"
4
namespace
fang::math
5
{
13
class
CoolLerp
14
{
15
public
:
16
using
Vector2D
=
math::Vector2D<double>
;
24
CoolLerp
(
const
Vector2D
& dataPoint1,
const
Vector2D
& dataPoint2);
25
26
double
interpolate
(
double
input)
const
;
27
private
:
28
const
Vector2D
mk_dataPoint1;
29
const
Vector2D
mk_dataPoint2;
30
const
double
mk_input_range;
31
};
32
}
33
#endif
fang::math::CoolLerp
Definition
cool_lerp.hpp:14
fang::math::CoolLerp::interpolate
double interpolate(double input) const
Definition
cool_lerp.cpp:16
fang::math
Definition
range.hpp:4
fang::math::Vector2D
Definition
vector_2d.hpp:8
vector_2d.hpp
fang-mcb-project
src
util
math
linear
cool_lerp.hpp
Generated by
1.9.8