 | GeneratorInterpolateTSource Method (IGeneratorTSource, IGeneratorInt32, FuncTSource, TSource, Single, TSource) |
Makes a generator that interpolates between values of a given generator.
Namespace:
Gamelogic.Extensions.Algorithms
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic static IGenerator<TSource> Interpolate<TSource>(
this IGenerator<TSource> generator,
IGenerator<int> sampleCount,
Func<TSource, TSource, float, TSource> interpolater
)
Parameters
- generator
- Type: Gamelogic.Extensions.AlgorithmsIGeneratorTSource
- sampleCount
- Type: Gamelogic.Extensions.AlgorithmsIGeneratorInt32
- interpolater
- Type: SystemFuncTSource, TSource, Single, TSource
Type Parameters
- TSource
Return Value
Type:
IGeneratorTSourceUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IGeneratorTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also