Click or drag to resize
AB4D logo

CameraUtilsGetOrthographicScreenSize Method

GetOrthographicScreenSize calculates a size on screen (in same units as size of Viewport3D.Width - without DPI scale) of a Size in 3D space (worldSize) that is 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 GetOrthographicScreenSize(
	Size worldSize,
	double cameraWidth,
	Size viewport3DSize
)

Parameters

worldSize  Size
Size in 3D space
cameraWidth  Double
camera's width
viewport3DSize  Size
Viewport3D's size

Return Value

Size
size on screen
See Also