HDK
|
Opaque interface to a spline for evaluations using cached segments. More...
#include <evaluator.h>
Public Member Functions | |
TsEvaluator () | |
Default constructor; falls back to empty spline. More... | |
TsEvaluator (TsSpline spline) | |
Constructs the evaluator and its caches for the given spline. More... | |
T | Eval (const TsTime &time, TsSide side=TsRight) const |
Opaque interface to a spline for evaluations using cached segments.
Use this evaluator when performing many evaluations on an unchanging TsSpline whose knots support tangents (e.g., Bezier splines). Evals on this class are required to be thread-safe.
Definition at line 47 of file evaluator.h.
TsEvaluator< T >::TsEvaluator | ( | ) |
Default constructor; falls back to empty spline.
Definition at line 72 of file evaluator.h.
TsEvaluator< T >::TsEvaluator | ( | TsSpline | spline | ) |
Constructs the evaluator and its caches for the given spline.
Definition at line 77 of file evaluator.h.
Evaluates the spline at the given time. Note that left side evals do not benefit from the cached segments.
Definition at line 123 of file evaluator.h.