Camera WorldToScreenPoint Method Delta Engine Documentation

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

public Vector2D WorldToScreenPoint(
	Vector3D point
)

Return Value

Type: Vector2D
Remarks

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

1 unit tests call DeltaEngine.Rendering3D.Cameras.Camera.WorldToScreenPoint(DeltaEngine.Datatypes.Vector3D)
[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