LookAtCamera YawPitchRoll Property Delta Engine Documentation

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

public Vector3D YawPitchRoll { get; set; }

Property Value

Type: Vector3D
Remarks

Tests: DeltaEngine.Rendering3D.Tests.Cameras.LookAtCameraTests
Examples

1 unit tests call DeltaEngine.Rendering3D.Cameras.LookAtCamera.YawPitchRoll
[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