LookAtCameraTests ZoomOutwardTheTarget 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 ZoomOutwardTheTarget()
Examples

[Test, CloseAfterFirstFrame]
public void ZoomOutwardTheTarget()
{
    var camera = CreateLookAtCamera(Vector3D.UnitX, Vector3D.Zero);
    camera.Zoom(-1.0f);
    Assert.AreEqual(Vector3D.UnitX * 2.0f, camera.Position);
}
See Also