Table of Contents

Class ComputeConstCurve<T>

Namespace
Stride.Animations
Assembly
Stride.Engine.dll

A node which describes a constant value for a compute curve

[DataContract(Inherited = true)]
[Display("Constant", null)]
public class ComputeConstCurve<T> : IComputeCurve<T>, IComputeCurve where T : struct

Type Parameters

T

Sampled data's type

Inheritance
ComputeConstCurve<T>
Implements
Derived

Properties

Value

Constant value to return every time this flat curve is sampled

[DataMember(10)]
[Display("Value", null)]
public T Value { get; set; }

Property Value

T

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 float

Location to sample at

Returns

T

Sampled value

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.