Gamelogic Grids 1 Documentation [Deprecated]
Gamelogic Grids 1 Documentation [Deprecated]
Gamelogic.Extensions.Algorithms
Generator Class
Generator Methods
OpenSawTooth Method
OpenSawTooth Method (Int32)
OpenSawTooth Method (IGenerator(Int32))
Generator
OpenSawTooth Method (IGenerator
Int32
)
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#
Copy
public
static
IGenerator
<
float
>
OpenSawTooth
(
IGenerator
<
int
>
sampleCount
)
Parameters
sampleCount
Type:
Gamelogic.Extensions.Algorithms
IGenerator
Int32
The number of samples per cycle.
Return Value
Type:
IGenerator
Single
A new generator.
Exceptions
Exception
Condition
ArgumentOutOfRangeException
sampleCount
is not positive.
See Also
Reference
Generator Class
OpenSawTooth Overload
Gamelogic.Extensions.Algorithms Namespace