Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    ComputeCurveSampler<T> Class

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

    Base interface for curve based compute value nodes.

    System.Object → ComputeCurveSampler<T>
    Derived from ComputeCurveSampler<T>: ComputeCurveSamplerColor4 ComputeCurveSamplerFloat ComputeCurveSamplerQuaternion ComputeCurveSamplerVector2 ComputeCurveSamplerVector3 ComputeCurveSamplerVector4

    [DataContract(Inherited = true)]
    public abstract class ComputeCurveSampler<T>
        where T : struct
    Type Parameters
    Name Description
    T
    Name Description
    Constructors
    ComputeCurveSampler()
    Fields
    curve
    Properties
    Curve
    Methods
    Evaluate(Single)

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

    Linear(ref T, ref T, Single, out T)

    Interface for linera interpolation between two data values

    UpdateChanges()
    | Improve this Doc View Source

    Constructors


    ComputeCurveSampler()

    protected ComputeCurveSampler()
    | Improve this Doc View Source

    Fields


    curve

    protected IComputeCurve<T> curve
    Field Value
    Type Description
    IComputeCurve<T>
    | Improve this Doc View Source

    Properties


    Curve

    [DataMember(10)]
    [Display("Curve", null)]
    public IComputeCurve<T> Curve { get; set; }
    Property Value
    Type Description
    IComputeCurve<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 t)
    Parameters
    Type Name Description
    System.Single t
    Returns
    Type Description
    T

    Sampled value


    Linear(ref T, ref T, Single, out T)

    Interface for linera interpolation between two data values

    public abstract void Linear(ref T value1, ref T value2, float t, out T result)
    Parameters
    Type Name Description
    T value1

    Left value

    T value2

    Right value

    System.Single t

    Lerp amount between 0 and 1

    T result

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


    UpdateChanges()

    public bool UpdateChanges()
    Returns
    Type Description
    System.Boolean

    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