Namespace: DeltaEngine.Rendering3D.Particles
Assembly: DeltaEngine.Rendering3D.Particles (in DeltaEngine.Rendering3D.Particles.dll) Version: 1.1.1.0 (1.1.1)
Top
Top
Top
Tests: DeltaEngine.Rendering3D.Particles.Tests.ValueRangeTests
6 unit tests call DeltaEngine.Rendering3D.Particles.ValueRange
Assembly: DeltaEngine.Rendering3D.Particles (in DeltaEngine.Rendering3D.Particles.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The ValueRange type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ValueRange(Single) | Initializes a new instance of the ValueRange class | |
ValueRange(String) | Initializes a new instance of the ValueRange class | |
ValueRange(Single, Single) | Initializes a new instance of the ValueRange class |
Methods
Name | Description | |
---|---|---|
GetRandomValue | ||
Lerp | ||
ToString | (Overrides ValueType ToString .) |
Properties
Name | Description | |
---|---|---|
End | ||
Start |
Remarks
Examples
[Test] public void SingleValueConstructor() { valueRange = new ValueRange(0.1f); Assert.AreEqual(0.1f, valueRange.Start); Assert.AreEqual(0.1f, valueRange.End); }
[Test] public void MinMaxConstructor() { Assert.AreEqual(0.2f, valueRange.Start); Assert.AreEqual(0.3f, valueRange.End); }
[Test] public void GetRandomValue() { Randomizer.Use(new FixedRandom(new[] { 0.4f })); Assert.AreEqual(0.24f, valueRange.GetRandomValue(), 0.0001f); }
See Also