ComputeCurveSamplerVector2 Class
Namespace: Stride.AnimationsAssembly: Stride.Engine.dll
Sampler container for Vector2 data type
Derived from ComputeCurveSamplerVector2:
[DataContract("ComputeCurveSamplerVector2")]
[Display("Sampler Vector2", null)]
public class ComputeCurveSamplerVector2 : ComputeCurveSampler<Vector2>
Name | Description | |
---|---|---|
Constructors | ||
ComputeCurveSamplerVector2() | ||
Methods | ||
Linear(ref Vector2, ref Vector2, Single, out Vector2) | Interface for linera interpolation between two data values |
Constructors
ComputeCurveSamplerVector2()
public ComputeCurveSamplerVector2()
Methods
Linear(ref Vector2, ref Vector2, Single, out Vector2)
Interface for linera interpolation between two data values
public override void Linear(ref Vector2 value1, ref Vector2 value2, float t, out Vector2 result)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | value1 | |
Vector2 | value2 | |
System.Single | t | Lerp amount between 0 and 1 |
Vector2 | result |
Overrides
Stride.Animations.ComputeCurveSampler<Stride.Core.Mathematics.Vector2>.Linear(Stride.Core.Mathematics.Vector2, Stride.Core.Mathematics.Vector2, System.Single, Stride.Core.Mathematics.Vector2)