Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ComputeConstCurve<T> Class

    Namespace: Stride.Animations
    Assembly: Stride.Engine.dll

    A node which describes a constant value for a compute curve

    System.Object → ComputeConstCurve<T>
    Derived from ComputeConstCurve<T>: ComputeConstCurveColor4 ComputeConstCurveFloat ComputeConstCurveQuaternion ComputeConstCurveVector2 ComputeConstCurveVector3 ComputeConstCurveVector4

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

    Sampled data's type

    Name Description
    Properties
    Value

    Constant value to return every time this flat curve is sampled

    Methods
    Evaluate(Single)

    Evaluates the compute curve's value at the specified location, usually in the [0 .. 1] range

    UpdateChanges()

    Updates any optimizations in the curve if data has changed.

    | Improve this Doc View Source

    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
    Type Description
    T
    | Improve this Doc View Source

    Methods


    Evaluate(Single)

    Evaluates the compute curve's value at the specified location, usually in the [0 .. 1] range

    public T Evaluate(float location)
    Parameters
    Type Name Description
    System.Single location

    Location to sample at

    Returns
    Type Description
    T

    Sampled value


    UpdateChanges()

    Updates any optimizations in the curve if data has changed.

    public bool UpdateChanges()
    Returns
    Type Description
    System.Boolean

    true there were changes since the last time; otherwise, false.


    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation