ViewportInfo.GetDollyCameraVector Method (Int32, Int32, Int32, Int32, Double)

ViewportInfoGetDollyCameraVector Method (Int32, Int32, Int32, Int32, Double)

Gets a world coordinate dolly vector that can be passed to DollyCamera().

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public Vector3d GetDollyCameraVector(
	int screenX0,
	int screenY0,
	int screenX1,
	int screenY1,
	double projectionPlaneDistance
)
Public Function GetDollyCameraVector ( 
	screenX0 As Integer,
	screenY0 As Integer,
	screenX1 As Integer,
	screenY1 As Integer,
	projectionPlaneDistance As Double
) As Vector3d

Parameters

screenX0
Type: SystemInt32
Screen coords of start point.
screenY0
Type: SystemInt32
Screen coords of start point.
screenX1
Type: SystemInt32
Screen coords of end point.
screenY1
Type: SystemInt32
Screen coords of end point.
projectionPlaneDistance
Type: SystemDouble
Distance of projection plane from camera. When in doubt, use 0.5*(frus_near+frus_far).

Return Value

Type: Vector3d
The world coordinate dolly vector.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also