Abstract
AbstractCurveMapper Constructor
callback function to be invoked when cache needs to be reset
Curve alpha parameter (0=uniform, 0.5=centripetal, 1=chordal)
Determines whether the curve should be a closed curve or not
Curve tension (0=Catmull-rom, 1=linear)
Protected
_invalidateEvaluate curve segment function at t
vector
time along full curve (encodes segment index and segment t)
Optional
target: Vectoroptional target vector
Get the curve function coefficients at the given segment index. The coefficients are calculated once per segment and put in cache until it is invalidated.
coefficients for the curve function at the given segment index
segment index
Abstract
getTAbstract
getUAbstract
lengthGenerated using TypeDoc
The curve mapper's main responsibility is to map between normalized curve position (u) to curve segments and segment position (t). Since it requires access to control points and curve parameters, it also keeps this data along with an internal cache. For this reason, the common functionality has been but into this abstract class definition, so that the mapping specific implementation can be held at a minimum by extending this class.