| PiecewiseCurveTParam, TPoint, TCurveKeyLoopParameter Method |
Handles pre- and post-looping by changing the given parameter so that it lies on the curve.
Namespace: DigitalRune.Mathematics.InterpolationAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public abstract TParam LoopParameter(
TParam parameter
)
Public MustOverride Function LoopParameter (
parameter As TParam
) As TParam
public:
virtual TParam LoopParameter(
TParam parameter
) abstract
abstract LoopParameter :
parameter : 'TParam -> 'TParam
Parameters
- parameter
- Type: TParam
The parameter value.
Return Value
Type:
TParamThe modified parameter value.
Remarks
If the parameter lies outside the curve the parameter is changed so that it lies on the
curve. The new parameter can be used to compute the curve result.
Following CurveLoopTypes need special handling:
- Linear: The parameter is not changed to lie on the curve; the
linear extrapolation of the curve has to be computed.
- CycleOffset: The parameter is corrected to be on the curve;
the curve function at this parameter can be evaluated and the offset must be added. The
curve point offset is not handled in this method.
See Also