 |
DXScenePoints3DTo2D(PositionNormalTexture, Vector2, Matrix, 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.DirectXAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.2.9484.2048 (1.0.0.0)
Syntaxpublic bool Points3DTo2D(
PositionNormalTexture[] positions3D,
Vector2[] points2D,
ref Matrix transformMatrix,
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
- transformMatrix Matrix
- Matrix that is used to transform every 3D position before the position is converted into 2D screed point
- useParallelFor Boolean (Optional)
- when true, then Parallel.For is used
Return Value
Booleantrue when the calculation was successful, false when the camera is not fully initialized and its matrix is not correct
See Also