Click or drag to resize
AB4D logo

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

Parameters

points3D  Point3D
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

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