|
BaseCameraPoints3DTo2D(IListPoint3D, Point, Transform3D, 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.CamerasAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public bool Points3DTo2D(
IList<Point3D> points3D,
Point[] points2D,
Transform3D transform = null,
bool useParallelFor = false
)
Parameters
- points3D IListPoint3D
- IList of 3D positions
- points2D Point
- array that will be filled with 2D positions on the screen
- transform Transform3D (Optional)
- when not null, then transformation is applied to all positions
- 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