Click or drag to resize

GeneratorOpenSawTooth Method (Int32)

Makes a generator that produces evenly spaced floats from 0 (included) to 1 (excluded), and repeats the result.

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

Parameters

sampleCount
Type: SystemInt32
The number of samples per cycle.

Return Value

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