 |
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: 10.1.8147.1045
Syntaxpublic Size GetWorldSize(
Size desiredScreenSize,
Point3D targetPosition3D
)
Parameters
- desiredScreenSize
- Type: System.WindowsSize
Desired size on screen (in same units as size of Viewport3D.Width - without DPI scale)e - targetPosition3D
- Type: System.Windows.Media.Media3DPoint3D
Point3D of a target position - where the worldSize is positioned in the 3D world
Return Value
Type:
Sizesize in 3D world
See Also