Back to FabImage Library Lite websiteYou are here:
Start »
Geometry 2D Constructions »
ProjectPointOnCircle
| Header: | FIL.h |
| Namespace: | fil |
Projects a point onto a circle.
Syntax
void fil::ProjectPointOnCircle
(
const fil::Point2D& inPoint,
const fil::Circle2D& inCircle,
fil::Point2D& outProjectionPoint
)
Parameters
Description
Note that because of inaccuracies of floating-point arithmetic, some geometric operations (including this one) may lead to unpredictable results for degenerated cases. In this filter such a case occurs when the input point and the center of the input circle are almost equal.
Examples
ProjectPointOnCircle performed on point and circle.