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 RadiansToDegrees() { Assert.AreEqual(0.0f, MathExtensions.RadiansToDegrees(0)); Assert.AreEqual(572.95776f, MathExtensions.RadiansToDegrees(10)); Assert.AreEqual(0.0f, 0.0f.RadiansToDegrees()); Assert.AreEqual(180.0f, MathExtensions.Pi.RadiansToDegrees()); Assert.AreEqual(-360.0f, -2.0f * MathExtensions.Pi.RadiansToDegrees()); Assert.AreEqual(1234.0f, 1234.0f.RadiansToDegrees().DegreesToRadians()); }
[Test] public void DegreesToRadians() { Assert.AreEqual(0.0f, MathExtensions.DegreesToRadians(0)); Assert.AreEqual(MathExtensions.Pi, 180.0f.DegreesToRadians()); Assert.AreEqual(-2.0f * MathExtensions.Pi, -360.0f.DegreesToRadians()); Assert.AreEqual(1234.0f, 1234.0f.DegreesToRadians().RadiansToDegrees()); }
See Also