Class ComputeFunctionCurve<T>
- Namespace
- Stride.Animations
- Assembly
- Stride.Engine.dll
A node which describes a function over t value for a compute curve
[DataContract(Inherited = true)]
[Display("Function", null)]
public abstract class ComputeFunctionCurve<T> : IComputeCurve<T>, IComputeCurve where T : struct
Type Parameters
T
Sampled data's type
- Inheritance
-
ComputeFunctionCurve<T>
- Implements
- Derived
Properties
Amplitude
[DataMember(14)]
[Display("Amplitude", null)]
public float Amplitude { get; set; }
Property Value
Period
[DataMember(12)]
[Display("Period", null)]
public float Period { get; set; }
Property Value
PhaseShift
[DataMember(10)]
[Display("Phase Shift", null)]
public float PhaseShift { 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 location)
Parameters
location
floatLocation to sample at
Returns
- T
Sampled value
GetElementFrom(float)
protected abstract T GetElementFrom(float value)
Parameters
value
float
Returns
- T
UpdateChanges()
Updates any optimizations in the curve if data has changed.
public bool UpdateChanges()
Returns
- bool
true
there were changes since the last time; otherwise,false
.