 |
BaseCameraGetScreenSize Method |
GetScreenSize 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 at distanceFromCamera and shown with this camera and in TargetViewport3D.
Namespace:
Ab3d.Cameras
Assembly:
Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 10.1.8147.1045
Syntaxpublic Size GetScreenSize(
Size worldSize,
Point3D targetPosition3D
)
Parameters
- worldSize
- Type: System.WindowsSize
Size in 3D space - targetPosition3D
- Type: System.Windows.Media.Media3DPoint3D
Point3D of a target position - where the worldSize is positioned in the 3D world
Return Value
Type:
Sizesize on screen
See Also