Click or drag to resize

GeneratorSelectTResult Method (IGeneratorSingle, ResponseCurveBaseTResult)

Makes a new generator by transforming the elements of a given float generator using a response curve.

Namespace:  Gamelogic.Extensions.Algorithms
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static IGenerator<TResult> Select<TResult>(
	this IGenerator<float> generator,
	ResponseCurveBase<TResult> selector
)

Parameters

generator
Type: Gamelogic.Extensions.AlgorithmsIGeneratorSingle
The source generator.
selector
Type: Gamelogic.Extensions.AlgorithmsResponseCurveBaseTResult
The selector function, used to transform floats to elements.

Type Parameters

TResult
The type of elements this generator will generate.

Return Value

Type: IGeneratorTResult
IGenerator<TResult>.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IGeneratorSingle. 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).
Exceptions
ExceptionCondition
ArgumentNullExceptiongenerator or selector is null
See Also