Divides a real-valued range t[0],t[1],...,t[n-1] into segments.
More...
#include <TimeSegmentation.h>
|
int | Map (Real t) const |
|
int | Map (Real t, Real ¶m) const |
|
|
static int | Map (const std::vector< Real > &timing, Real t) |
|
static int | Map (const std::vector< Real > &timing, Real t, Real ¶m) |
|
Divides a real-valued range t[0],t[1],...,t[n-1] into segments.
static int Spline::TimeSegmentation::Map |
( |
const std::vector< Real > & |
timing, |
|
|
Real |
t, |
|
|
Real & |
param |
|
) |
| |
|
inlinestatic |
Same as above, but calculates a parameter u such that t=(1-u)*t[i]+u*t[i+1].
int Spline::TimeSegmentation::Map |
( |
Real |
t | ) |
const |
|
inline |
Returns an index i such that t is in [t[i],t[i+1]). If it is beyond the end of the times, returns n-1. If it is before the first time, returns -1.
int Spline::TimeSegmentation::Map |
( |
Real |
t, |
|
|
Real & |
param |
|
) |
| const |
|
inline |
Same as above, but calculates a parameter u such that t=(1-u)*t[i]+u*t[i+1].
The documentation for this struct was generated from the following file: