Click or drag to resize
AB4D logo

BaseCameraGetWorldSize Method

GetWorldSize calculates a size in 3D world coordinates from a size provided in 2D screen coordinates. The calculation is based on the this camera and the screen size of TargetViewport3D.

Namespace: Ab3d.Cameras
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public Size GetWorldSize(
	Size desiredScreenSize,
	Point3D targetPosition3D
)

Parameters

desiredScreenSize  Size
Desired size on screen (in same units as size of Viewport3D.Width - without DPI scale)e
targetPosition3D  Point3D
Point3D of a target position - where the worldSize is positioned in the 3D world

Return Value

Size
size in 3D world
See Also