Class ComputeCurveSampler<T>
- Namespace
- Stride.Animations
- Assembly
- Stride.Engine.dll
Base interface for curve based compute value nodes.
[DataContract(Inherited = true)]
public abstract class ComputeCurveSampler<T> where T : structType Parameters
- T
- Inheritance
- 
      objectComputeCurveSampler<T>
- Derived
Constructors
ComputeCurveSampler()
protected ComputeCurveSampler()Fields
curve
protected IComputeCurve<T> curveField Value
Properties
Curve
[DataMember(10)]
[Display("Curve", null)]
public IComputeCurve<T> Curve { get; set; }Property Value
Methods
Evaluate(float)
Evaluates the compute curve's value at the specified location, usually in the [0 .. 1] range
public T Evaluate(float t)Parameters
- tfloat
Returns
- T
- Sampled value 
Linear(ref T, ref T, float, out T)
Interface for linera interpolation between two data values
public abstract void Linear(ref T value1, ref T value2, float t, out T result)Parameters
- value1T
- Left value 
- value2T
- Right value 
- tfloat
- Lerp amount between 0 and 1 
- resultT
- The interpolated result of linearLerp(L, R, t) 
UpdateChanges()
public bool UpdateChanges()