Ejemplo n.º 1
0
 Vector3D IMyCamera.WorldToScreen(ref Vector3D worldPos)
 {
     return(Vector3D.Transform(worldPos, ViewProjectionMatrix));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets screen coordinates of 3d world pos in 0 - 1 distance where 1.0 is screen width(for X) or height(for Y).
 /// WARNING: Y is from bottom to top.
 /// </summary>
 /// <param name="worldPos">World position.</param>
 /// <returns>Screen coordinate in 0-1 distance.</returns>
 public Vector3D WorldToScreen(ref Vector3D worldPos)
 {
     return(Vector3D.Transform(worldPos, ViewProjectionMatrix));
 }