Namespace: DeltaEngine.Datatypes
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Datatypes.Vector2DTests
1 unit tests call DeltaEngine.Datatypes.Vector2D.GetRotation
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Return Value
Type: SingleRemarks
Examples
[Test] public void GetRotation() { Assert.AreEqual(0, new Vector2D(1, 0).GetRotation()); Assert.AreEqual(90, new Vector2D(0, 1).GetRotation()); Assert.AreEqual(180, new Vector2D(-1, 0).GetRotation()); Assert.AreEqual(-90, new Vector2D(0, -1).GetRotation()); Assert.AreEqual(45, new Vector2D(1, 1).GetRotation()); }
See Also