InvertedScreenSpaceTests GetInnerPoint Method Delta Engine Documentation

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

public void GetInnerPoint()
Examples

[Test]
public void GetInnerPoint()
{
    window.ViewportPixelSize = new Size(800, 600);
    ScreenSpace screen = new InvertedScreenSpace(window);
    Assert.AreEqual(screen.TopLeft, screen.GetInnerPosition(Vector2D.Zero));
    Assert.AreEqual(screen.BottomRight, screen.GetInnerPosition(Vector2D.One));
}
See Also