Namespace: DeltaEngine.Tests.Extensions
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void Min() { Assert.AreEqual(2.5f, MathExtensions.Min(3.5f, 2.5f)); Assert.AreEqual(-3.5f, MathExtensions.Min(-3.5f, -1.5f)); Assert.AreEqual(4, MathExtensions.Min(4, 5)); }
[Test] public void WrapRotationToMinus180ToPlus180() { Assert.AreEqual(0, MathExtensions.WrapRotationToMinus180ToPlus180(0)); Assert.AreEqual(90, MathExtensions.WrapRotationToMinus180ToPlus180(90)); Assert.AreEqual(180, MathExtensions.WrapRotationToMinus180ToPlus180(180)); Assert.AreEqual(-90, MathExtensions.WrapRotationToMinus180ToPlus180(270)); Assert.AreEqual(0, MathExtensions.WrapRotationToMinus180ToPlus180(720)); }
See Also