Class FloatCurve
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)
Cretes a new key element.
Declaration
protected override FloatKeyframe CreateKey(float lerp, float value)
Parameters
Type | Name | Description |
---|---|---|
float | lerp | The lerp. |
float | value | The value. |
Returns
Type | Description |
---|---|
FloatKeyframe | The keyframe. |
Overrides
Lerp(float, float, float)
Obtains an interpolated value between 2 curves.
Declaration
protected override float Lerp(float value1, float value2, float amount)
Parameters
Type | Name | Description |
---|---|---|
float | value1 | The value 1. |
float | value2 | The value 2. |
float | amount | The lerp amount. |
Returns
Type | Description |
---|---|
float | The interpolated value. |