Click or drag to resize

GeneratorOpenSawTooth Method (IGeneratorInt32)

Makes a generator that produces evenly spaced floats from 0 (included) to 1 (excluded), and repeats the result (but with the number of samples each time given by a generator).

Namespace:  Gamelogic.Extensions.Algorithms
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static IGenerator<float> OpenSawTooth(
	IGenerator<int> sampleCount
)

Parameters

sampleCount
Type: Gamelogic.Extensions.AlgorithmsIGeneratorInt32
The number of samples per cycle.

Return Value

Type: IGeneratorSingle
A new generator.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionsampleCountis not positive.
See Also