Class FloatCurve
Represents the curve class.
Inherited Members
Namespace: Evergine.Common.Curves
Assembly: Evergine.Common.dll
Syntax
public class FloatCurve : Curve<float, FloatKeyframe>
Constructors
FloatCurve()
Initializes a new instance of the FloatCurve class.
Declaration
public FloatCurve()
FloatCurve(float)
Initializes a new instance of the FloatCurve class.
Declaration
public FloatCurve(float level)
Parameters
| Type | Name | Description |
|---|---|---|
| float | level | The level. |
Methods
CreateKey(float, float)
Creates a new key element.
Declaration
protected override FloatKeyframe CreateKey(float lerp, float value)
Parameters
| Type | Name | Description |
|---|---|---|
| float | lerp | The interpolation value. |
| float | value | The value. |
Returns
| Type | Description |
|---|---|
| FloatKeyframe | The keyframe. |
Overrides
Lerp(float, float, float)
Obtains an interpolated value between two curves.
Declaration
protected override float Lerp(float value1, float value2, float amount)
Parameters
| Type | Name | Description |
|---|---|---|
| float | value1 | The first value. |
| float | value2 | The second value. |
| float | amount | The interpolation amount. |
Returns
| Type | Description |
|---|---|
| float | The interpolated value. |