Method AnimationCurveSample
AnimationCurveSample(float[], float, float, float, float)
Generate samples from probability distribution derived from a given AnimationCurve.
Declaration
public static float AnimationCurveSample(float[] integratedCurve, float uniformSample, float interval, float startTime, float endTime)
Parameters
| Type | Name | Description |
|---|---|---|
| float[] | integratedCurve | Numerical integration representing the AnimationCurve |
| float | uniformSample | A sample value between 0 and 1 generated from a uniform distribution |
| float | interval | The interval at which the original AnimationCurve was sampled in order to produce integratedCurve |
| float | startTime | The time attribute of the first key of the original AnimationCurve |
| float | endTime | The time attribute of the last key of the original AnimationCurve |
Returns
| Type | Description |
|---|---|
| float | The generated sample |