Environment.WorldToScreen (Double, Double, Double) Method

Maps world coordinates to screen coordinates.
Public Function WorldToScreen( _ 
ByVal x As Double, _ 
ByVal y As Double, _ 
ByVal z As Double
) As Point3D
This language is not supported or no code example is available.
public Point3D WorldToScreen( 
double x
double y
double z 
)
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

Return Value

Point3D

The associated projected screen point (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.5, 4.6, 4.7

In this article

Definition