ComputeConstCurve<T> Class
Namespace: Stride.AnimationsAssembly: Stride.Engine.dll
A node which describes a constant value for a compute curve
System.Object →
ComputeConstCurve<T>
Derived from ComputeConstCurve<T>: ComputeConstCurveColor4 ComputeConstCurveFloat ComputeConstCurveQuaternion ComputeConstCurveVector2 ComputeConstCurveVector3 ComputeConstCurveVector4
[DataContract(Inherited = true)]
[Display("Constant", null)]
public class ComputeConstCurve<T> : IComputeCurve<T>, IComputeCurve where T : struct
Type Parameters
| Name | Description |
|---|---|
| T | Sampled data's type |
| Name | Description | |
|---|---|---|
| Properties | ||
| Value | Constant value to return every time this flat curve is sampled |
|
| Methods | ||
| Evaluate(Single) | Evaluates the compute curve's value at the specified location, usually in the [0 .. 1] range |
|
| UpdateChanges() | Updates any optimizations in the curve if data has changed. |
|
Properties
Value
Constant value to return every time this flat curve is sampled
[DataMember(10)]
[Display("Value", null)]
public T Value { get; set; }
Property Value
| Type | Description |
|---|---|
| T |
Methods
Evaluate(Single)
Evaluates the compute curve's value at the specified location, usually in the [0 .. 1] range
public T Evaluate(float location)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | location | Location to sample at |
Returns
| Type | Description |
|---|---|
| T | Sampled value |
UpdateChanges()
Updates any optimizations in the curve if data has changed.
public bool UpdateChanges()
Returns
| Type | Description |
|---|---|
| System.Boolean |
|