Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    ComputeCurveSamplerFloat Class

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

    Sampler container for float data type

    System.Object → ComputeCurveSampler<System.Single> → ComputeCurveSamplerFloat
    Derived from ComputeCurveSamplerFloat:

    [DataContract("ComputeCurveSamplerFloat")]
    [Display("Sampler Float", null)]
    public class ComputeCurveSamplerFloat : ComputeCurveSampler<float>
    Name Description
    Constructors
    ComputeCurveSamplerFloat()
    Methods
    Linear(ref Single, ref Single, Single, out Single)

    Interface for linera interpolation between two data values

    | Improve this Doc View Source

    Constructors


    ComputeCurveSamplerFloat()

    public ComputeCurveSamplerFloat()
    | Improve this Doc View Source

    Methods


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

    Interface for linera interpolation between two data values

    public override void Linear(ref float value1, ref float value2, float t, out float result)
    Parameters
    Type Name Description
    System.Single value1
    System.Single value2
    System.Single t

    Lerp amount between 0 and 1

    System.Single result
    Overrides
    Stride.Animations.ComputeCurveSampler<System.Single>.Linear(System.Single, System.Single, System.Single, System.Single)

    Inherited Members

    ComputeCurveSampler<Single>.curve
    ComputeCurveSampler<Single>.Curve
    ComputeCurveSampler<Single>.Evaluate(Single)
    ComputeCurveSampler<Single>.UpdateChanges()

    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