Camera.WorldToScreen (Double, Double, Double, Int32()) Method

Maps world coordinates to screen mouse coordinates.
Public Function WorldToScreen( _ 
ByVal x As Double, _ 
ByVal y As Double, _ 
ByVal z As Double, _ 
ByVal viewFrame As Integer() _ 
) As Point3D
This language is not supported or no code example is available.
public Point3D WorldToScreen( 
double x
double y
double z
int[] viewFrame 
)
This language is not supported or no code example is available.

Parameters

x
double

3D point's x-coordinate

y
double

3D point's y-coordinate

z
double

3D point's z-coordinate

viewFrame
int[]

The viewport coordinates

Return Value

Point3D

The associated projected screen point relative to the screen (zero on bottom).

Remarks
 
The z-component of the returned point is in the normalized device coordinate space [0,1]. A value outside the [0,1] range means that the point is outside the near-far clipping planes of the camera.

.NET Framework

Supported in: 4.8

In this article

Definition