You are here: Start » FIL.NET » Function Reference » Geometry 3D » Geometry 3D Spatial Transforms » FIL.ProjectPointPerspective
Converts a point through a perspective projection, parallel to the Z axis.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void ProjectPointPerspective ( FilNet.Point3D inPoint3D, FilNet.Point2D inCenter, FilNet.Point3D inFocalPoint, float inFocalLength, out FilNet.Point2D outPoint2D )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoint3D | FilNet.Point3D | |||
![]() | inCenter | FilNet.Point2D | Center of projection, i.e. the target for projected points (x_focal, y_focal, z). | ||
![]() | inFocalPoint | FilNet.Point3D | The camera center, i.e. the point we measure (x, y, z) against. | ||
![]() | inFocalLength | float | The multiplier for the x and y coordinates, which is divided by z. If negative, projects in opposite direction. | ||
![]() | outPoint2D | FilNet.Point2D |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Projected point coplanar with the focal point, but not equal to it in ProjectPointPerspective. |