Click or drag to resize
AB4D logo

CameraUtilsGetOrthographicWorldSize Method

GetOrthographicWorldSize calculates a size in 3D world from a screen Size (screenSize in screen coordinates) that is at distanceFromCamera and shown with orthographic camera with cameraWidth and in Viewport3D with viewport3DSize.

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static Size GetOrthographicWorldSize(
	Size desiredScreenSize,
	double cameraWidth,
	Size viewport3DSize
)

Parameters

desiredScreenSize  Size
Size on screen (in same units as size of Viewport3D.Width - without DPI scale)
cameraWidth  Double
camera's width
viewport3DSize  Size
Viewport3D's size

Return Value

Size
3D world size
See Also