MathExtensionsTests Clamp Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Extensions
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void Clamp()
Examples

[Test]
public void Clamp()
{
    Assert.AreEqual(0, 0.Clamp(0, 1));
    Assert.AreEqual(90.0f, 100.0f.Clamp(0.0f, 90.0f));
}
See Also