MathExtensions Cos Method Delta Engine Documentation

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

public static float Cos(
	float degrees
)

Return Value

Type: Single
Remarks

Tests: DeltaEngine.Tests.Extensions.MathExtensionsTests
Examples

1 unit tests call DeltaEngine.Extensions.MathExtensions.Cos(System.Single)
[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