Click or drag to resize
AB4D logo

BaseCameraPoints3DTo2D Method (Point3D, 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
Syntax
C#
public bool Points3DTo2D(
	Point3D[] points3D,
	Point[] points2D,
	Transform3D transform = null,
	bool useParallelFor = false
)

Parameters

points3D
Type: System.Windows.Media.Media3DPoint3D
IList of 3D positions
points2D
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