Eyeshot 10 WinForms API Reference
WorldToScreen(Point3D,Int32[]) Method

WinForms Assembly > devDept.Eyeshot Namespace > Camera Class > WorldToScreen Method : WorldToScreen(Point3D,Int32[]) Method
The 3D point to project on screen
The viewport coordinates
Maps world coordinates to screen mouse coordinates.
Syntax
'Declaration
 
Public Overloads Function WorldToScreen( _
   ByVal point As Point3D, _
   ByVal viewFrame() As Integer _
) As Point3D
public Point3D WorldToScreen( 
   Point3D point,
   int[] viewFrame
)

Parameters

point
The 3D point to project on screen
viewFrame
The viewport coordinates

Return Value

The associated projected screen point relative to the viewport (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.
See Also

Reference

Camera Class
Camera Members
Overload List