Click or drag to resize

RhinoViewportGetWorldToScreenScale Method

Gets the world to screen size scaling factor at a point in frustum.

Namespace:  Rhino.Display
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public bool GetWorldToScreenScale(
	Point3d pointInFrustum,
	out double pixelsPerUnit
)

Parameters

pointInFrustum
Type: Rhino.GeometryPoint3d
A point in frustum.
pixelsPerUnit
Type: SystemDouble
scale = number of pixels per world unit at the 3d point.

This out parameter is assigned during this call.

Return Value

Type: Boolean
true if the operation is successful.
See Also