Table of Contents

Class ComputeCurveSamplerVector2

Namespace
Stride.Animations
Assembly
Stride.Engine.dll

Sampler container for Vector2 data type

[DataContract("ComputeCurveSamplerVector2")]
[Display("Sampler Vector2", null)]
public class ComputeCurveSamplerVector2 : ComputeCurveSampler<Vector2>
Inheritance
ComputeCurveSamplerVector2
Inherited Members

Constructors

ComputeCurveSamplerVector2()

public ComputeCurveSamplerVector2()

Methods

Linear(ref Vector2, ref Vector2, float, 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

value1 Vector2

Left value

value2 Vector2

Right value

t float

Lerp amount between 0 and 1

result Vector2

The interpolated result of linearLerp(L, R, t)