| PiecewiseCurveFTPoint, 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 override float LoopParameter(
float parameter
)
Public Overrides Function LoopParameter (
parameter As Single
) As Single
public:
virtual float LoopParameter(
float parameter
) override
abstract LoopParameter :
parameter : float32 -> float32
override LoopParameter :
parameter : float32 -> float32
Parameters
- parameter
- Type: SystemSingle
The parameter value.
Return Value
Type:
SingleThe 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