Vector2DTests GetRotation Method Delta Engine Documentation

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

public void GetRotation()
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