|
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.CamerasAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax 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
Sizesize in 3D world
See Also