You are here: Start » AVL.NET » Function Reference » Geometry 3D » Geometry 3D Spatial Transforms » AVL.ProjectPointPerspective

AVL.ProjectPointPerspective

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void ProjectPointPerspective
(
	AvlNet.Point3D inPoint3D,
	AvlNet.Point2D inCenter,
	AvlNet.Point3D inFocalPoint,
	float inFocalLength,
	out AvlNet.Point2D outPoint2D
)

Parameters

Name Type Range Default Description
inPoint3DAvlNet.Point3D
inCenterAvlNet.Point2DCenter of projection, i.e. the target for projected points (x_focal, y_focal, z).
inFocalPointAvlNet.Point3DThe camera center, i.e. the point we measure (x, y, z) against.
inFocalLengthfloatThe multiplier for the x and y coordinates, which is divided by z. If negative, projects in opposite direction.
outPoint2DAvlNet.Point2D

Errors

List of possible exceptions:

Error type Description
DomainError Projected point coplanar with the focal point, but not equal to it in ProjectPointPerspective.

See also