Click or drag to resize

GeneratorClosedSawTooth Method

Makes a generator that produces evenly spaced floats from 0 to 1, both limits included, 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> ClosedSawTooth(
	int sampleCount
)

Parameters

sampleCount
Type: SystemInt32
The number of samples per cycle.

Return Value

Type: IGeneratorSingle
A new generator.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionsampleCountis not bigger than 1.
See Also