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

[Test, CloseAfterFirstFrame]
public void WorldToScreenPoint()
{
    var camera = CreateLookAtCamera(Vector3D.One, Vector3D.Zero);
    var point = camera.WorldToScreenPoint(Vector3D.Zero);
    Assert.AreEqual(Vector2D.Half, point);
}
See Also