IsometricCameraTests CreateWithLookDirection 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 CreateWithLookDirection()
Examples

[Test, CloseAfterFirstFrame]
public void CreateWithLookDirection()
{
    var lookDirection = Vector3D.UnitY;
    camera = new IsometricCamera(Resolve<Device>(), Resolve<Window>(), lookDirection);
    Assert.AreEqual(-lookDirection, camera.Position);
    Assert.AreEqual(Vector3D.Zero, camera.Target);
}
See Also