ProjectPointPerspective


Converts a point through a perspective projection, parallel to the Z axis.

Syntax

C++
C#
Python
 
def ProjectPointPerspective(
	inPoint3D: Point3D,
	inCenter: Point2D,
	inFocalPoint: Point3D,
	inFocalLength: float,
	/
)
-> outPoint2D: Point2D

Parameters

Name Type Default Description
Input value inPoint3D Point3D
Input value inCenter Point2D Center of projection, i.e. the target for projected points (x_focal, y_focal, z)
Input value inFocalPoint Point3D The camera center, i.e. the point we measure (x, y, z) against
Input value inFocalLength float The multiplier for the x and y coordinates, which is divided by z. If negative, projects in opposite direction.
Output value outPoint2D Point2D