Click or drag to resize
DigitalRunePiecewiseCurveFTPoint, TCurveKeyLoopParameter Method
Handles pre- and post-looping by changing the given parameter so that it lies on the curve.

Namespace: DigitalRune.Mathematics.Interpolation
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public override float LoopParameter(
	float parameter
)

Parameters

parameter
Type: SystemSingle
The parameter value.

Return Value

Type: Single
The 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