|
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.UtilitiesAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax 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
Sizesize on screen
See Also