Loading...
Searching...
No Matches
TsEvaluator< T > Class Template Reference

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.
 
 TsEvaluator (TsSpline spline)
 Constructs the evaluator and its caches for the given spline.
 
Eval (const TsTime &time, TsSide side=TsRight) const
 Evaluates the spline at the given time.
 

Detailed Description

template<typename T>
class TsEvaluator< T >

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.

Constructor & Destructor Documentation

◆ TsEvaluator() [1/2]

Default constructor; falls back to empty spline.

Definition at line 72 of file evaluator.h.

◆ TsEvaluator() [2/2]

TsEvaluator ( TsSpline  spline)

Constructs the evaluator and its caches for the given spline.

Definition at line 77 of file evaluator.h.

Member Function Documentation

◆ Eval()

T Eval ( const TsTime &  time,
TsSide  side = TsRight 
) const

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.


The documentation for this class was generated from the following file: