Namespace: DeltaEngine.Rendering3D.Cameras
Assembly: DeltaEngine.Rendering3D (in DeltaEngine.Rendering3D.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Rendering3D.Tests.Cameras.IsometricCameraTests
7 unit tests call DeltaEngine.Rendering3D.Cameras.IsometricCamera.Position
Assembly: DeltaEngine.Rendering3D (in DeltaEngine.Rendering3D.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: Vector3DRemarks
Examples
[Test, CloseAfterFirstFrame] public void SettingPositionMovesTarget() { camera.Position = new Vector3D(10.0f, 10.0f, 10.0f); Assert.AreEqual(new Vector3D(10.0f, 11.0f, 10.0f), camera.Target); }
[Test, CloseAfterFirstFrame] public void SettingTargetMovesPosition() { camera.Target = new Vector3D(10.0f, 10.0f, 10.0f); Assert.AreEqual(new Vector3D(10.0f, 9.0f, 10.0f), camera.Position); }
[Test, CloseAfterFirstFrame] public void MoveLeft() { camera.MoveLeft(1.0f); Assert.AreEqual(new Vector3D(-1.0f, -1.0f, 0.0f), camera.Position); }
See Also