RhinoViewport.WorldToClient Method

RhinoViewportWorldToClient Method

Convert a point from world coordinates in the viewport to a 2d screen point in the local coordinates of the viewport (X/Y of point is relative to top left corner of viewport on screen)

Namespace:  Rhino.Display
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public Point2d WorldToClient(
	Point3d worldPoint
)
Public Function WorldToClient ( 
	worldPoint As Point3d
) As Point2d

Parameters

worldPoint
Type: Rhino.GeometryPoint3d
The 3D point in world coordinates.

Return Value

Type: Point2d
The 2D point on the screen.
See Also