OrthoCameraTests TestViewPanning Method Delta Engine Documentation

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

public void TestViewPanning()
Examples

[Test, CloseAfterFirstFrame]
public void TestViewPanning()
{
    camera.Position = Vector3D.UnitX;
    camera.Target = Vector3D.Zero;
    camera.ViewPanning(Vector2D.UnitX);
    Assert.IsTrue(new Vector3D(-1, 0, 0).IsNearlyEqual(camera.Target));
    Assert.IsTrue(new Vector3D(0, 0, 0).IsNearlyEqual(camera.Position));
}
See Also