Class ComputeBinaryCurve<T>
- Namespace
 - Stride.Animations
 
- Assembly
 - Stride.Engine.dll
 
A node which describes a binary operation between two IComputeCurve<T>
[DataContract(Inherited = true)]
[Display("Binary Operator", null)]
public abstract class ComputeBinaryCurve<T> : IComputeCurve<T>, IComputeCurve where T : struct
  Type Parameters
TSampled data's type
- Inheritance
 - 
      objectComputeBinaryCurve<T>
 
- Implements
 
- Derived
 
Properties
LeftChild
The left child node
[DataMember(20)]
[Display("Left", null)]
public IComputeCurve<T> LeftChild { get; set; }
  Property Value
Operator
The operation used to blend the two values
[DataMember(10)]
public BinaryCurveOperator Operator { get; set; }
  Property Value
RightChild
The right child node
[DataMember(30)]
[Display("Right", null)]
public IComputeCurve<T> RightChild { get; set; }
  Property Value
Methods
Add(T, T)
Adds the left value to the right value and retuns their sum
protected abstract T Add(T a, T b)
  Parameters
aTLeft value A
bTRight value B
Returns
- T
 The sum A + B
Evaluate(float)
Evaluates the compute curve's value at the specified location, usually in the [0 .. 1] range
public T Evaluate(float location)
  Parameters
locationfloatLocation to sample at
Returns
- T
 Sampled value
Multiply(T, T)
Multiplies the left value to the right value and retuns the result
protected abstract T Multiply(T a, T b)
  Parameters
aTLeft value A
bTRight value B
Returns
- T
 The result A * B
Subtract(T, T)
Subtracts the right value from the left value and retuns the result
protected abstract T Subtract(T a, T b)
  Parameters
aTLeft value A
bTRight value B
Returns
- T
 The result A - B
UpdateChanges()
Updates any optimizations in the curve if data has changed.
public bool UpdateChanges()
  Returns
- bool
 truethere were changes since the last time; otherwise,false.