RhinoViewport.GetPickTransform Method (Int32, Int32)

RhinoViewportGetPickTransform Method (Int32, Int32)

Takes a rectangle in screen coordinates and returns a transformation that maps the 3d frustum defined by the rectangle to a -1/+1 clipping coordinate box. This takes a single point and inflates it by Rhino.ApplicationSettings.ModelAidSettings.MousePickBoxRadius to define the screen rectangle.

Namespace:  Rhino.Display
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public Transform GetPickTransform(
	int clientX,
	int clientY
)
Public Function GetPickTransform ( 
	clientX As Integer,
	clientY As Integer
) As Transform

Parameters

clientX
Type: SystemInt32
The client point X coordinate.
clientY
Type: SystemInt32
The client point Y coordinate.

Return Value

Type: Transform
A transformation matrix.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.14
See Also