FMX.Types.InterpolateSine
Delphi
function InterpolateSine(t, B, C, D: Single; AType: TAnimationType): Single;
C++
extern PACKAGE float __fastcall InterpolateSine(float t, float B, float C, float D, TAnimationType AType);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | FMX.Types.pas FMX.Types.hpp |
FMX.Types | FMX.Types |
Description
Calculates the new time period for a sinusoidal interpolation.
InterpolateSine is used by TAnimation to determine TAnimation.NormalizedTime depending on the current time, total TAnimation.Duration, and type of the animation.
t specifies the time used to compute current value.
B is the start value. If B is not 0, B periods of time (t) are skipped.
C specifies the delta between the start and end values. Give a C parameter different from 1 to multiply the time to compute the current value. If C is negative, the animation goes in the opposite direction.
D specifies the end value of the time period. AType specifies the animation type for which the new time period is calculated.
For TAnimation.NormalizedTime, B is 0 (no periods are skipped) and C is 1.
See Also
- FMX.Types.InterpolateBack
- FMX.Types.InterpolateBounce
- FMX.Types.InterpolateCirc
- FMX.Types.InterpolateColor
- FMX.Types.InterpolateQuad
- FMX.Types.InterpolateElastic
- FMX.Types.InterpolateExpo
- FMX.Types.InterpolateLinear
- FMX.Types.InterpolateCubic
- FMX.Types.InterpolateQuart
- FMX.Types.InterpolateRotation
- FMX.Types.InterpolateQuint
- FMX.Types.InterpolateSingle
- FMX.Types.TAnimation.NormalizedTime
- FMX.Types.TInterpolationType
- FMX.Types.TAnimation.AnimationType