MathExtensions Sin Method Delta Engine Documentation

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

public static float Sin(
	float degrees
)

Return Value

Type: Single
Remarks

Tests: DeltaEngine.Tests.Extensions.MathExtensionsTests
Examples

1 unit tests call DeltaEngine.Extensions.MathExtensions.Sin(System.Single)
[Test]
public void Sin()
{
    Assert.AreEqual(0, MathExtensions.Sin(0));
    Assert.AreEqual(1, MathExtensions.Sin(90));
    Assert.AreEqual(0, MathExtensions.Sin(180), Precision);
    Assert.AreEqual(0, MathExtensions.Sin(360), Precision);
    Assert.AreNotEqual(0, MathExtensions.Sin(32));
}
See Also