Namespace: DeltaEngine.Extensions
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Extensions.MathExtensionsTests
1 unit tests call DeltaEngine.Extensions.MathExtensions.WrapRotationToMinus180ToPlus180(System.Single)
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- degrees
- Type: System Single
Return Value
Type: SingleRemarks
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