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

[Test]
public void WrapRotationToMinus180ToPlus180()
{
    Assert.AreEqual(0, MathExtensions.WrapRotationToMinus180ToPlus180(0));
    Assert.AreEqual(90, MathExtensions.WrapRotationToMinus180ToPlus180(90));
    Assert.AreEqual(180, MathExtensions.WrapRotationToMinus180ToPlus180(180));
    Assert.AreEqual(-90, MathExtensions.WrapRotationToMinus180ToPlus180(270));
    Assert.AreEqual(0, MathExtensions.WrapRotationToMinus180ToPlus180(720));
}
See Also