Camera2DScreenSpaceTests EdgesAfterZoomingIn 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 EdgesAfterZoomingIn()
Examples

[Test]
public void EdgesAfterZoomingIn()
{
    Assert.AreEqual(16 / 9.0f, window.ViewportPixelSize.AspectRatio);
    var camera = new Camera2DScreenSpace(window) { Zoom = 2.0f };
    Assert.AreEqual(new Vector2D(0.25f, 0.359375f), camera.TopLeft);
    Assert.AreEqual(new Vector2D(0.75f, 0.640625f), camera.BottomRight);
    Assert.AreEqual(0.359375f, camera.Top, 0.0001f);
    Assert.AreEqual(0.25f, camera.Left, 0.0001f);
    Assert.AreEqual(0.640625f, camera.Bottom, 0.0001f);
    Assert.AreEqual(0.75f, camera.Right, 0.0001f);
}
See Also