MathExtensionsTests Cos 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 Cos()
Examples

[Test]
public void Cos()
{
    Assert.AreEqual(1, MathExtensions.Cos(0));
    Assert.AreEqual(0, MathExtensions.Cos(90), Precision);
    Assert.AreEqual(-1, MathExtensions.Cos(180), Precision);
    Assert.AreEqual(1, MathExtensions.Cos(360), Precision);
    Assert.AreNotEqual(0, MathExtensions.Cos(32));
}
See Also