Click or drag to resize
Ab4d.SharpEngine logo

CameraUtilsGetOrthographicWorldSize Method

GetOrthographicWorldSize calculates a size in 3D world from a screen size (screenSize in screen coordinates) that is at distanceFromCamera and shown with orthographic camera with cameraWidth and in SceneView with viewSize.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public static Vector2 GetOrthographicWorldSize(
	Vector2 desiredScreenSize,
	float cameraWidth,
	Vector2 viewport3DSize
)

Parameters

desiredScreenSize  Vector2
Size on screen (in same units as viewSize - without DPI scale)
cameraWidth  Single
camera's width
viewport3DSize  Vector2
SceneView's size as Vector2

Return Value

Vector2
3D world size as Vector2
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.CameraUtils.GetOrthographicWorldSize(System.Numerics.Vector2,System.Single,System.Numerics.Vector2)"]

See Also