MathExtensions Tan Method Delta Engine Documentation

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

public static float Tan(
	float degrees
)

Return Value

Type: Single
Remarks

Tests: DeltaEngine.Tests.Extensions.MathExtensionsTests
Examples

1 unit tests call DeltaEngine.Extensions.MathExtensions.Tan(System.Single)
[Test]
public void Tan()
{
    Assert.AreEqual(0.0f, MathExtensions.Tan(0.0f), Precision);
    Assert.AreEqual(0.0f, MathExtensions.Tan(180.0f), Precision);
    Assert.AreEqual(1.0f, MathExtensions.Tan(45.0f), Precision);
}
See Also