Click or drag to resize
AB4D logo

OptimizedPointMeshTGetPixel3DSize Method

GetPixel3DSize returns size of one pixel at specified position on screen based on the specified camera and view width. For example, value 5 means a box at the specified position and with size set to 5 will be rendered to 1 pixel on screen.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public static float GetPixel3DSize(
	ICamera dxCamera,
	float viewportWidth,
	Vector3 position
)

Parameters

dxCamera  ICamera
Camera that is used to view the 3D scene
viewportWidth  Single
width of the viewport (in screen coordinates)
position  Vector3
Vector3 of the position for where the calculation should be done

Return Value

Single
size of one pixel at specified position on the screen
See Also