|
Lamp-Da 0.1
A compact lantern project
|
Given two points and an exponent, fit an exponential function. More...
#include <curves.h>
Public Types | |
| using | point_t = Point< T, U > |
| point in the exponential curve | |
Public Member Functions | |
| ExponentialCurve (const point_t &pointA, const point_t &pointB, const double exponent=15.0) | |
| Exponential curve fitting to two points. | |
| float | sample (const T x) const |
| Sample the exponential curve. Be aware that the result is always casted from a floating point !! -> for integer types, it will be the same as calling "floor()" on the result. | |
Given two points and an exponent, fit an exponential function.
| [in] | T | Type of X coordinates |
| [in] | U | type of Y coordinates |
|
inline |
Exponential curve fitting to two points.
| [in] | pointA | Start point of the curve |
| [in] | pointB | End point of the curve |
| [in] | exponent | The strenght factor of this exponential. Set to 1 for a linear curve, > 1 gives strong exponential, < 1 gives log curves |