Click or drag to resize
AB4D logo

DXScenePoints3DTo2D(PositionNormalTexture, Vector2, Boolean) Method

Points3DTo2D calculates 2D screen positions from the specified 3D positions. Calculated screen positions are stored into the specified points2D array (its size must be at least the size of the 3D positions).

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.2.9484.2048 (1.0.0.0)
Syntax
C#
public bool Points3DTo2D(
	PositionNormalTexture[] positions3D,
	Vector2[] points2D,
	bool useParallelFor = false
)

Parameters

positions3D  PositionNormalTexture
array of 3D positions defined as PositionNormalTexture
points2D  Vector2
array that will be filled with 2D positions on the screen
useParallelFor  Boolean  (Optional)
when true, then Parallel.For is used

Return Value

Boolean
true when the calculation was successful, false when the camera is not fully initialized and its matrix is not correct
See Also