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)
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.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also