|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
inlinenoexcept |
Straightness of a path over a window, 1.0 is a straight line.
| history | Buffer of positions, capacity >= window |
| window | Number of samples, minimum 2 |
A gesture that doubles back on itself drives this toward 0 even though individual segment speeds may be high; a gesture that moves directly toward one point holds this near 1.0 regardless of speed.
Definition at line 485 of file Differential.hpp.
References net_displacement(), and path_length().
Referenced by straightness().
Here is the call graph for this function:
Here is the caller graph for this function: