Namespace: DeltaEngine.Rendering3D.Tests.Cameras
Assembly: DeltaEngine.Rendering3D.Tests (in DeltaEngine.Rendering3D.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Rendering3D.Tests (in DeltaEngine.Rendering3D.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void RotateCamera90DegreesAroundZAxis() { var camera = CreateLookAtCamera(Vector3D.UnitY, Vector3D.Zero); Assert.AreEqual(Vector3D.Zero, camera.YawPitchRoll); camera.YawPitchRoll = new Vector3D(90.0f, 0.0f, 0.0f); Assert.IsTrue(camera.Position.IsNearlyEqual(-Vector3D.UnitX)); Assert.AreEqual(Vector3D.Zero, camera.Target); }
See Also