ComputeCurveSampler<T> Class
Namespace: Stride.AnimationsAssembly: Stride.Engine.dll
Base interface for curve based compute value nodes.
System.Object →
ComputeCurveSampler<T>
Derived from ComputeCurveSampler<T>: ComputeCurveSamplerColor4 ComputeCurveSamplerFloat ComputeCurveSamplerQuaternion ComputeCurveSamplerVector2 ComputeCurveSamplerVector3 ComputeCurveSamplerVector4
[DataContract(Inherited = true)]
public abstract class ComputeCurveSampler<T>
where T : struct
Type Parameters
| Name | Description |
|---|---|
| T |
| Name | Description | |
|---|---|---|
| Constructors | ||
| ComputeCurveSampler() | ||
| Fields | ||
| curve | ||
| Properties | ||
| Curve | ||
| Methods | ||
| Evaluate(Single) | Evaluates the compute curve's value at the specified location, usually in the [0 .. 1] range |
|
| Linear(ref T, ref T, Single, out T) | Interface for linera interpolation between two data values |
|
| UpdateChanges() | ||
Constructors
ComputeCurveSampler()
protected ComputeCurveSampler()
Fields
curve
protected IComputeCurve<T> curve
Field Value
| Type | Description |
|---|---|
| IComputeCurve<T> |
Properties
Curve
[DataMember(10)]
[Display("Curve", null)]
public IComputeCurve<T> Curve { get; set; }
Property Value
| Type | Description |
|---|---|
| IComputeCurve<T> |
Methods
Evaluate(Single)
Evaluates the compute curve's value at the specified location, usually in the [0 .. 1] range
public T Evaluate(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | t |
Returns
| Type | Description |
|---|---|
| T | Sampled value |
Linear(ref T, ref T, Single, 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
| Type | Name | Description |
|---|---|---|
| T | value1 | Left value |
| T | value2 | Right value |
| System.Single | t | Lerp amount between 0 and 1 |
| T | result | The interpolated result of linearLerp(L, R, t) |
UpdateChanges()
public bool UpdateChanges()
Returns
| Type | Description |
|---|---|
| System.Boolean |