Click or drag to resize
AB4D logo

BaseCameraPoints3DTo2D Method (IListPoint3D, Point, Transform3D, Boolean)

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.Cameras
Assembly:  Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 10.1.8147.1045
public bool Points3DTo2D(
	IList<Point3D> points3D,
	Point[] points2D,
	Transform3D transform = null,
	bool useParallelFor = false


Type: System.Collections.GenericIListPoint3D
IList of 3D positions
Type: System.WindowsPoint
array that will be filled with 2D positions on the screen
transform (Optional)
Type: System.Windows.Media.Media3DTransform3D
when not null, then transformation is applied to all positions
useParallelFor (Optional)
Type: SystemBoolean
when true, then Parallel for is used

Return Value

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